09-13-2021 07:51 PM
Hi all,
I am trying to use a JSON file to feed in the body of a response that is working in Postman with curl code like this:
In SnapLogic I added the raw body in a JSON generator and want to feed that into a REST Post Snap. My pipeline looks like this:
With no headers nor queries in Postman, only the JSON/raw body and the service URL, I retrieve results with no issues. However, with Snaplogic I am not receiving output. Has anyone done this? I am told I cannot incorporate the credentials into the headers, it must be in the body…but how do I reconcile this with SnapLogic? No one on my team has worked on something externalized that has functioned in this way.
Thanks!
09-13-2021 10:42 PM
@ariana you can try below option-
09-14-2021 10:29 AM
Hi there! Thanks for your help. Here is what I am looking at now, still no output:
Mapper -
Mapper validation output -
POST Snap:
Pipeline:
Edit: I will add that I did try simply copying the body into the mapper with “$” in the Post snap but with the same (lack of) results.
09-14-2021 11:06 AM
Change HTTP entity
from $entity
to JSON.stringify($entity)
.
09-14-2021 11:24 AM
Hi ptaylor, thank you for the addition. Do I need to change any other settings if doing that? I am not getting output still ☹️
This is the preview I get when I hover over stringify- is that what I would want?