Truncate Text Strings Using the "Truncate" Text Helper

Keragon’s Truncate Text Helper allows you to shorten long text strings by limiting their length and appending an optional omission indicator. This is useful when you need to control text display length for UI presentation, notifications, or summaries.

How to Use the Truncate Text Helper

00:00: This guide will walk you through the process of truncating text strings using the 00:04: truncate action in caragon. 00:07: First go to your workflow editor. 00:11: Click the plus icon. 00:14: Access the helpers menu. 00:17: Select the text helpers option. 00:20: Choose the truncate action. 00:23: Click on the value field 00:26: Map the text value that you want to truncate in the value field. 00:31: Set the maximum string length returned including any Omission string in 00:35: the max length field. 00:38: Set the Omission field. This is the string to indicate text is omitted. 00:43: Safe the changes 00:46: Proceeded to test the step 00:49: View the outputs tab 00:52: You should see the truncated text here. 00:55: The guide covered the process of truncating text strings in caragon using 00:59: the truncate function.

  • Open your workflow editor.

  • Click the + icon to add a new step.

  • In the step selection panel, click "Helpers".

  • From the Helpers options, select "Text Helpers".

  • Choose the "Truncate" action.

  • Click the Value field.

  • Use the Variable Selector to map the text value you want to truncate.

  • Set the Max Length field with the maximum number of characters to return (this includes the omission string if provided).

  • (Optional) Set the Omission field with the string to indicate that text has been truncated (e.g., "...").

  • Click "Save" to apply changes.

  • Click "Test Step" to preview the result.

  • Go to the Outputs tab to view the truncated text.

Example Result:

  • Input: "Keragon helps you build powerful automations quickly and easily."

  • Max Length: 30

  • Omission: "..."

  • Output: "Keragon helps you build pow..."

Was this article helpful?
0 out of 0 found this helpful

Articles in this section

See more