StringAfter

Finds a value after a particular word or phrase inside the token.

Syntax

StringAfter(inputText, option, preceedingText)

Enabled For

For a description of the business object categories, see Notes on "Enabled For".

Business Object Category Yes/No
Business Rules: Before-Save Rules Yes
Business Rules: Calculation Rules (After Save, with or without Also Recalculate on Load) Yes1
Business Rules: Calculation Rules (Before Save or Always, without Also Recalculate On Load) Yes
Business Rules: Calculation Rules (Before Save or Always, with Recalculate On Load) Yes1
Business Rules: Editing Rules Yes
Business Rules: Initialization Rules Yes
Business Rules: Read Only Rules Yes
Business Rules: Required Rules Yes
Business Rules: Validation Rules Yes
Client Expressions Yes
Object Permissions No
Services No
LDAP No
Mobile No
Quick Actions (except UI Quick Actions) Yes
UI Quick Actions Yes
Reports Yes
Search/Dashboard without field references No
Search/Dashboard with field references No
1. Not fully supported in calculation rules that have a condition of After Save or the Also Recalculate on Load option selected. It may fail if the rule's field is used in a grid, form, or saved search.

Parameters

Parameter Description
inputText Input string on which to perform StringAfter

option

Options available to perform StringAfter:

NextWord: Displays the next word after the search text.

NextNumber: Displays the next number after the search text. This skips over any text until it finds a number.

ToEnd: Returns all the text that appears after the text to search for.

ToEndOfLine: Returns all the text that appears after the text to search for, until the end of the line.

preceedingText

A particular text immediately preceding the value that needs to be found

Return Value

Returns a string after a particular text.

Examples

$(StringAfter(": This is regarding Incident: 1234 which is important", "NextWord", "regarding"))

Returns this value: "Incident".

$(StringAfter(": This is regarding Incident: 1234 which is important", "NextNumber", "regarding"))

Returns this value: "1234".

$(StringAfter(": This is regarding Incident: 1234 which is important \n Please respond urgently", "ToEnd",   "regarding"))

Returns this value: "1234 which is important \n Please respond urgently".

$(StringAfter(": This is regarding Incident: 1234 which is important \n Please respond urgently", "ToEndOfLine", "regarding"))

Returns this value: "Incident: 1234 which is important".