Hi Team,
I am trying to read an api response from Kore.ai service node but everytime it comes as blank.
Response:-
{“statusCode”:201,“body”:{“list”:[{“id”:“8987”,“createdBy”:“417”}]}}
In message box i am writing
{{context.serviceName.response.body.list.id[0]}}
Can anyone please help me here i am stuck since 5 hour
Hello @aditya.singhania ,
The response is:
{
“statusCode”:201,
“body”: {
“list”: [ {“id”:“8987”,“createdBy”:“417”} ]
}
}
If you notice, list is an array and id is an object of list value.
So Ideally you have to use {{context.serviceName.response.body.list[0]}}
The response you will get will be - {“id”:“8987”, “createdBy”:“417”}
Hope this clarified any confusion