cancel
Showing results for 
Search instead for 
Did you mean: 

Obtaining response from JSON Post command

peter
New Contributor III

Hi

I have a pipeline which takes data from a SQL select command and posts to a Service Now API to create a task. Service Now responds with the ID’s of the tasks which I want to post back to the SQL.

However when I run the POST command in Snaplogic, I seem to get no response back, the circle is blank. I know the API has worked as I can see the tasks in Service Now and If I run the API command in Postman, I get the ID’s returned.

How do I see the JSON response from the REST POST Snap?

22 REPLIES 22

peter
New Contributor III

Res square brackets [ ] .

peter
New Contributor III

Sorry, my spelling was awful.

I now get a red empty pair of red square brackets [ ]

peter
New Contributor III

GOT IT. Once I had saved the Snap it worked.

Thanks so much for your help.

peter
New Contributor III

The main problem was in the REST POST Snap, the response entity type was set to text, I switch this to default and it returned correctly formatted JSON, which I could extract.

Once again thanks for your help.

dimche_saveski
New Contributor III

Glad to help solving the issue.

Regards
Dimche