Split String at Offset

The Split String at Offset action is used to return two strings from a source string at a specific offset within the source string.

The Split String at Offset action is part of the Technology Preview Extension

This action is part of the Technology Preview Extension, which is also referred to as the sandbox package. The action will be found in the String trigger action category upon successful deployment of the sandbox package,
See Technology Preview Extension for information on obtaining and installing the extension.

Input tab

Parameter Description
String The source string.
Offset The location in the string that marks the end point of the LeftString and the begin point of RightString.

Output tab

Parameter Description
LeftString The string created from the beginning of the String value to the Offset value.
RightString The string created from the character after the Offset value to the end of the String value.

For example:

  • Given the String "the quick brown fox jumped over the lazy dog", the Offset 10, the action will return the a value of "the quick " in the Output parameter LeftString and a value of "brown fox jumped over the lazy dog" in RightString.
  • Using the action again with the same String and an Offset of 100 will result in an error because the Offset value is exceeds the size of the String.
  • Using the action a third time with the same String and an Offset of 0 will return the an empty string value in the Output parameter LeftString and a value of "the quick brown fox jumped over the lazy dog" in RightString.