Forum Discussion
@ariana you can try below option-
- Use mapper and copy entire body {“email”:“”,…} and use target field as $ in mapper.
- You don’t need to touch anything related to file upload option, rather add header field like below.
- Also make sure you choose snap execution as "validate and execution" at below.
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.
- ptaylor4 years agoEmployee
Change
HTTP entity
from$entity
toJSON.stringify($entity)
.- ariana4 years agoNew Contributor
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?
- ariana4 years agoNew Contributor
Apologies, I started a new snap to try out your method and it was Execute only. Now I am getting an error. I think that is an improvement over nothing, but need to figure it out.
- ptaylor4 years agoEmployee
Ok, the default Snap Execution of Execute Only explains why you weren’t getting any output when validating. Actually, I don’t think the
JSON.stringify($entity)
is really necessary, since$entity
in this context will implicitly convert the input data to a JSON string.It looks like the web service you’re invoking needs some authentication, and there are different ways of handling that. Please check the docs for the target web service regarding the required authentication.