a week ago
I'm trying to replace the REST Get snaps in my pipelines with the Http Client snap but the response I'm getting is formatted differently. With the Rest Get snap, the JSON response is formatted as a list so I can subset it using $entity.data notation:
However, when I use the HTTP Client snap, the 'entity' element is returned as a string:
As close as possible, I tried to configure both snaps the same but I'm assuming there's something different about the HTTP Client snap that I need to change. Can someone explain what I need to do to get the HTTP Client to return the JSON in the same format at the Rest Get snap?
a week ago
@maahutch - did you set your Content-Type in the HTTP Headers section of the HTTP Client?
a week ago
In both the HTTP client and the REST Get snap , I have my headers set like this based on the source system documentation:
a week ago
@maahutch - please check your HTTP Client snap settings, under Client Settings / Output and ensure it is set to JSON. JSON is the default, but perhaps it was changed accidentally?
a week ago
Sorry - to clarify, it would be under Client Settings / Output / Response Type