Find Substring in String
Finds a particular substring from a source string and returns the index of the starting position of the substring.
Add and configure the Find Substring in String action
- Click the Utility action group in the action toolbox.
or
- Drag the Find Substring in String action to the designer canvas.
- Double click the action to open the Action configuration window.
- In the Substring field, enter the substring you want to search for in the source string.
- In the String field, specify the source string.
- In the Output field, select or add a variable to store the result of the string operation.
Type the action name or function in the Search field at the top of the action toolbox.
For more information about Discard check out items fields and settings, see Find Substring in String action fields, buttons and settings.
Field | Description |
---|---|
Substring |
The substring to search for. |
String |
The source string to use. This source string is searched to find the substring specified. |
Output |
The workflow variable to store the output from this action. The output is an Integer variable that returns the starting position of the substring. If the substring is not found the action returns -1. |