Version: 1.4
Category: Process
Extended Category: String
Action Package: Standard Actions
Description
Returns the substring that begins at the specified Start Position and ends at the specified End Position.
Parameter | Description | Example |
Session Attribute with String Value | [Mandatory] Enter a session attribute name for ‘Incoming String Value’. The ‘Incoming String Value’ is the string that will be manipulated. Supports multiple attributes, separated with comma (,). Supports SESSION() and GLOBAL(). No default value. | address |
Session Attribute for Result | [Optional] Enter a session attribute name for ‘Result’. Supports multiple attributes, separated with comma (,). If empty, or the number of names are less than for the incoming string values, the original attribute will be used for the result value. Supports SESSION() and GLOBAL(). No default value. | shortAddress |
Start Position | [Optional] Enter a numeric value for the ‘Start Position’. The substring begins at the specified Start Position and ends at the specified End Position. Supports SESSION(). Default value=1. | 1 |
Static End Position | [Optional] Enter a numeric value for the ‘Static End Position’. The substring begins at the specified Start Position and ends at the specified End Position. Can not be used together with parameter ‘Relative End Position’. Supports SESSION(). No default value. | 5 |
Relative End Position | [Optional] Enter a numeric value for the ‘Relative End Position’. Removes the number of characters from the end of the string. The substring begins at the specified Start Position. Can not be used together with parameter ‘Static End Position’. Supports SESSION(). No default value. | 2 |
Session Attribute for Status | [Optional] Enter a session attribute name for ‘Status’. The ‘Status’ attribute value indicates SUCCESS or ERROR. Leave blank to not create any status attribute. | substringStatus |
Use Cases
Example 1: Get the extension from telephoneNumber
The last 4 digits in the attribute telephoneNumber is the extension.
Parameter | Example |
Session Attribute with String Value | telephoneNumber |
Session Attribute for Result | extension |
Start Position | 5 |
Static End Position | 8 |
Relative End Position | [BLANK] |
Session Attribute for Status | substringStatus |
Example 2: Remove the 2 ending characters
The value in attribute title ends with a 2 character code, that should be removed. The length of the title can vary.
Parameter | Example |
Session Attribute with String Value | title |
Session Attribute for Result | [BLANK] |
Start Position | 1 |
Static End Position | [BLANK] |
Relative End Position | 2 |
Session Attribute for Status | substringStatus |
DISCLAIMER
Information provided in this document is for your information only. PhenixID makes no explicit or implied claims to the validity of this information. Any trademarks referenced in this document are the property of their respective owners.The origin of this information may be internal or external to PhenixID. PhenixID makes all reasonable efforts to verify this information.
PhenixID - support.phenixid.se