Access/Map entire response in REST Call Task

cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
apita
Member II

Access/Map entire response in REST Call Task

Jump to solution

In the REST Call Task response mapping, is it possible to map the entire response payload to a string variable, instead of a specific JSON property. We're calling endpoints that return JSON without root elements and I need the entire response. Is this possible? Is there another way to access the entire response payload for the REST Call? I know I can map each individual element, but these payloads can become huge and contain a lot of nested properties.

1 Solution

Accepted Solutions
bassam_al-saror
Senior Member

Re: Access/Map entire response in REST Call Task

Jump to solution

Try using a dot for the property name in the response mapping.

View solution in original post

3 Replies
bassam_al-saror
Senior Member

Re: Access/Map entire response in REST Call Task

Jump to solution

Try using a dot for the property name in the response mapping.

View solution in original post

apita
Member II

Re: Access/Map entire response in REST Call Task

Jump to solution

This worked, thanks!

flavio1
Member II

Re: Access/Map entire response in REST Call Task

Jump to solution

What if I have a JSON array as a response, and for example I would like to access a property of the first JSON object?