View this page in the latest version of Appian. leftb_26r8() Function Share Share via LinkedIn Reddit Email Copy Link Print On This Page This page contains information related to an old version of the a!leftb() Function. To take advantage of the latest features and improvements, we always recommend you use the latest version whenever possible. For what's changed, see New version details. Returns a specified number of bytes from the text, starting from the first byte. Parameters leftb_26r8( text, num_bytes ) Keyword Type Description text Text The text from which the substring will be taken. num_bytes Number The length in bytes of the subtext to extract. Returns Text Examples The following example demonstrates the leftb() function. To experiment with examples, copy and paste the expression into an expression rule and click TEST RULE to see the output. leftb("boston",3) returns bos New version details A new version of the a!leftb() function is available starting in Appian 26.9. The new version adds an encoding parameter that lets you specify a character encoding when extracting bytes from text. This is useful when working with multi-byte character sets such as UTF-8, Shift_JIS, or GBK. If you are using leftb_26r8(), it will continue to work as-is. To update to the new version, replace leftb_26r8() with a!leftb(). No other updates are needed. Feature compatibility The table below lists this function's compatibility with various features in Appian. Feature Compatibility Note Portals Compatible Offline Interfaces Compatible Sync-Time Custom Record Fields Compatible Can be used to create a custom record field that only evaluates at sync time. Real-Time Custom Record Fields Incompatible Custom record fields that evaluate in real time must be configured using one or more Custom Field functions. Process Reports Compatible Process Events Compatible Can be used to configure a process event node, such as a start event or timer event. Process Autoscaling Compatible Can be used in autoscaled processes. Event Consumer Filter Conditions Compatible Can be used in filter conditions. Event Consumer Event Handlers Compatible Can be used in event handler expressions. Feedback Was this page helpful? SHARE FEEDBACK Loading...