PhenixID

String Substring

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.

ParameterDescriptionExample
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.

ParameterExample
Session Attribute with String ValuetelephoneNumber
Session Attribute for Resultextension
Start Position5
Static End Position8
Relative End Position[BLANK]
Session Attribute for StatussubstringStatus

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.

ParameterExample
Session Attribute with String Valuetitle
Session Attribute for Result[BLANK]
Start Position1
Static End Position[BLANK]
Relative End Position2
Session Attribute for StatussubstringStatus

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