split( text, separator )
Splits text into a list of text elements, delimited by the text specified in the separator.
Keyword | Type | Description |
---|---|---|
|
Text |
The text to be split. |
|
Text |
The text delimiter by which the text will be separated. |
Text
1
split("John Smith", "m")
Returns { "John S", "ith" }
.
1
split("A sentence has words separated by spaces.", " ")
Returns { "A", "sentence", "has", "words", "separated", "by", "spaces." }
.
1
2
3
4
5
6
7
a!localVariables(
local!names: "James Cameron; Sofia Coppola",
a!forEach(
split(local!names, "; "),
recordType!Person(Person.name: fv!item)
)
)
Returns { [Person name=James Cameron], [Person name=Sofia Coppola] }
.
1
split({ "carol@sample.com", "jeremy@sample.com" }, "@")
Returns { "carol", "sample.com", "jeremy", "sample.com" }
. All items in the list are processed together.
1
split("REDXbluexGREEN", { "x", "X" })
Returns { "RED", "blue", "GREEN" }
. All separators in the list are used to separate elements. Any matching separator results in a split regardless of their order in the text or the separator list.
Feature | Compatibility | Note |
---|---|---|
Portals | Compatible | |
Offline Mobile | Compatible | |
Sync-Time Custom Record Fields | Compatible | Can be used to create a custom record field that only evaluates at sync time. |
Real-Time Custom Record Fields | Incompatible | Custom record fields that evaluate in real time must be configured using one or more Custom Field functions. |
Process Reports | Compatible | |
Process Events | Compatible |
split() Function