concatenate
Concatenates multiple values into a single string. Non-string arguments are automatically converted to strings before concatenation.
Syntax
concatenate(value1, value2, ...)
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| value1, value2, ... | any | Yes (at least one) | The values to concatenate together. Non-string values are converted to strings automatically. |
Returns
Type: string
A single string formed by joining all arguments in order.
Examples
Combining text fields:
concatenate([first_name], " ", [last_name])
If first_name is "Jane" and last_name is "Doe", the result is "Jane Doe".
Mixing text and numbers:
concatenate("Ticket #", [number], " - ", [short_description])
If number is 42 and short_description is "Login issue", the result is "Ticket #42 - Login issue".
Building a URL path:
concatenate("https://instance.service-now.com/api/now/table/", [table_name])
If table_name is "incident", the result is "https://instance.service-now.com/api/now/table/incident".
Notes
- All arguments are converted to their string representation, so you can safely pass numbers, booleans, or other types.
- To join a list of values with a separator between them, use the
joinfunction instead.
Comments
0 comments
Please sign in to leave a comment.