Substring Action Advanced Customizations

  • Dynamic Start: The start index can be determined based on the position of a character in the text (e.g., after the @ character).
  • Conditional Subtext: If the text length exceeds a certain value, only the first X characters can be taken.
  • Substring + Concat Combination: The part obtained with Substring can be combined with another text to create new values (e.g., username + ID).

Technical Risks

  • Invalid Index Error: Make sure that the Starting Index and Count values do not exceed the length of the text. Otherwise, the system may return an error or an empty value.
  • Use of Negative Values: Negative indexes are not supported. Values must be zero or positive.
  • Empty or Undefined Text: If the Value field is empty or null, the action will not execute. The text should be checked for validity beforehand.
  • Type Mismatch: Entering text in fields that expect numbers (or vice versa) may cause unexpected errors in the system.
  • Language and Character Support: Special characters or multi-byte characters (e.g., emojis, Turkish characters) may be counted as more characters than expected in some systems. Compatibility testing is recommended.

Substring is an ideal, powerful, and flexible action for managing and organizing text-based operations in your applications by breaking them into parts. It is frequently used in scenarios such as form validation, username generation, and content filtering.