Webservice integration Action run successfully but no data shows in Json output

I am trying to integrate my inbound call flow to invoke a third party REST webservice API and getting this issue.
I am able to test this REST API successfully on Post man tool

When i run the action test by providing same input that i used in postman, the output shows Action successfully run(Green background) but when i check json(expand) i see empty response

My REST API outputs from third party is simple json like below

{
"OpStatus": "SUCCESS",
"AccountNum": "12345"
}

I have created response contacts as Objects of string. Should i change anything else

i have tried this as response configuration but getting error " Resolve translation map: Failed while processing the translation map. Could not resolve value for the key: 'OpStatus' and no default value was configured. Additional details: No results for path: $['OpStatus']
{
"translationMap": {"OpStatus":"$.OpStatus",
"AccountNum":"$.AccountNum"},
"translationMapDefaults": {},
"successTemplate": "{"OpStatus": ${OpStatus}}"
}

The only way I was able to reproduce this is if the "OpStatus" was missing from the result being returned in the execution.
When executing a /test what do you see for the "Resolve translation map" step?

I suspect the rawResult does not have the "OpStatus" field.

I can see that Postman returning this field. Also i was checking each step. and step 8 (Execute) have empty result and doest have any json response.

REST API gives below o/p on Postman
{
"OpStatus": "SUCCESS",
"AccountNum": "12345"
}

If the Execute step has no result, then there was no data returned by the HTTP request.
Check the "Resolve request URL template" and "Resolve request body template" to see if those are resolving as expected.

Yes, I can see that both these steps (5) and (6) are showing green.

Being green just means there were no errors. It does mean that it was configured to do what you intended it to do.

If that URL is correct, and there is a different result from execute and Postman, then there is likely something else needed for it to return a results correctly that is being done in Postman and not setup in the Action. A header or authentication difference would be the likely

Ok. i think its my request contract that may be causing. Below is the format in Postman for my request.
{ "Body":{
"BalanceFlag": "Y",
"IVRContactId":"1-GHJRk7",
"AccountNum":"3551" }
}
Should i use Simple or Json in my request contract.

I figured out the issue and got it resolved. Thanks very much for helping me on this.

Glad we could help.

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.