Hello Community,
I need some guidance to help me understand how I can setup Data Action such that I receive a set of JSON result as String in Architect, which I can then convert back to JSON and use.
My results look something like this;
{
"result": {
"resultSummary": {
"totalMatches": 2,
"complateMatches": 2,
"incompleteMatches": 0
},
"persons": [
{
"firstName": "xyz",
"lastName": "abc",
"contactDetails": [
{
"phoneNumber": "1234567890",
"countryCode": "44",
"phoneType": "mobile",
"contactState": "primary"
},
{
"phoneNumber": "9876543210",
"countryCode": "44",
"phoneType": "mobile",
"contactState": "secondary"
}
]
}
]
}
}
Based on the above I am not able to setup Data Action contact or successTemplate to return the whole of "persons" array structure as an string output. I tried various options but can't seem to get it working. Maybe as there are nested arrays in the results, it has an issue, not sure.
Any guidance would be really appreciated.
Regards
#Unsure/Other------------------------------
Vineet Kakroo
Senior Technical Consultant
------------------------------