03-31-2022 06:39 PM
New to Workat and I am working with a schema that has some nested arrays and I cant seem to figure out how to create a if condition that will be triggered if any option in the nested array contains the specific value.
Example:
create a if condition where "Interests" contains "swimming" so that the data in the schema below is picked up
{
"deliveryContext": {
"camper": {
"demographics": {
"address": "string",
"city": "string",
"state": "string",
"country": "string",
"phone": "string",
"postalCode": "string",
"email": "string",
"firstName": "string",
"lastName": "string",
}
"Interests": [
{
"id": "34",
"value": "biking"},
{id": "27",
"value": "biking"}.]
}
}
04-01-2022 11:29 AM
hey RAYUDU ADDAGRALA the recipe worked with David Cornwell's json
{"deliveryContext": {"camper": {"demographics": {"address": "string","city": "string","state": "string","country": "string","phone": "string","postalCode": "string","email": "string","firstName": "string","lastName": "string","Interests": [{"id": "34","value": "biking"},{"id": "22","value": "swimming"}]}}}}
correctly picked up the second id "22" with value "swimming"
04-01-2022 12:32 PM