It supports flat output to Architect, so you would have to take that array and flatten it to something, probably pipe-delimited, then parse it back out in Architect based on the pipe delimiter. I think.
Maybe someone on the Forum at
https://developer.mypurecloud.com would have a better idea.
Or
@Richard Schott
------------------------------
George Ganahl GCP (Genesys Cloud), ICCE
Principal Technology Consultant
Genesys
------------------------------
Original Message:
Sent: 05-06-2020 03:34
From: Vaun McCarthy
Subject: Webservices results populating an array
Hi guys
Can anybody point me to a post or article that would help with setting a data/webservices action up that takes results from the json response and populates an array to subsequently loop through in a call flow?
ie if I send a phone number to a service and it returns a list of all the people living at the address associated with that number and their dates of birth
so something comes back like :
"residents":[
{"firstName":"John", "lastName":"Doe","dob","12-01-1999"},
{"firstName":"Anna", "lastName":"Smith","dob","13-02-1998"},
{"firstName":"Peter", "lastName":"Jones","dob","14-03-1997"}
]
I'd want to then loop through each checking dob and do something like if it's the current date, then play "today is .....'s" birthday
Thanks
#ArchitectureandDesign
#Routing(ACD/IVR)
------------------------------
Vaun McCarthy
NTT New Zealand Limited
------------------------------