Hello,
I have a API, which returns object in the following format:
{
"conversationObject": {
"conversationId": "058cf0dc-fc4a-4b7c-adc6-93f9ddde023c",
"ClaimNumber" : 123456
"prefferedAgent": [],
"getHistoryCheck": [],
"getHealthCheck": [],
"getEnabledCheck": []
}
}
wher preferredAgent is array of strings, where the size of the array can be different with each call of the API and getHistoryCheck, getHealthCheck and getEnabledCheck are arrays of object, which can also be of different size with every call.
So once the response can be like this:
{
"conversationObject": {
"conversationId": "058cf0dc-fc4a-4b7c-adc6-93f9ddde023c",
"ClaimNumber" : 123456
"prefferedAgent": ["john.doe@email.com"],
"getHistoryCheck": [
{
“ApplicationId”: "EACZ-APP-1042",
“ReportGroupParentId”: 5,
“Result”: true
},
{
“ApplicationId”: "EACZ-APP-1066",
“ReportGroupParentId”: 5,
“Result”: true
}
],
"getHealthCheck": [],
"getEnabledCheck": []
}
}
and the other time like this:
{
"conversationObject": {
"conversationId": "058cf0dc-fc4a-4b7c-adc6-93f9ddde023c",
"ClaimNumber" : 123456
"prefferedAgent": ["john.doe@email.com","john.doe2@email.com"],
"getHistoryCheck": [
{
“ApplicationId”: "EACZ-APP-1042",
“ReportGroupParentId”: 5,
“Result”: true
}
],
"getHealthCheck": [],
"getEnabledCheck": []
}
}
What I would like to ask, is how to effectively handle this in the Data Action and also in the Architect, so I am able to access these values?