Creating a string using parts of other strings
Create a new string by modifying other strings using the LowerCase, Concat and Substring functions.
Before you begin
About this task
In this example, you have a JSON file with users' first and last names. You want to
generate a user ID, all in lowercase, composed of the full last name and the first
two letters of the first name. You can use the following JSON sample as input:
You can use the following JSON sample to create your output structure:
{
"users": [
{
"lastName": "Doe",
"firstName": "John"
},
{
"lastName": "Smith",
"firstName": "Jane"
},
{
"lastName": "Scott",
"firstName": "Michael"
}
]
}
{
"users": [
{
"lastName": "",
"firstName": "",
"id": ""
}
]
}
Procedure
Results
You can use the Test Run feature to see
the result. In this example, the following output is returned:
{
"users": [
{
"lastName": "Doe",
"firstName": "John",
"id": "doejo"
},
{
"lastName": "Smith",
"firstName": "Jane",
"id": "smithja"
},
{
"lastName": "Scott",
"firstName": "Michael",
"id": "scottmi"
}
]
}