01-11-2022 01:23 PM
We have an API that’s expecting raw text as the body of the call and I’m not clear on how to get SnapLogic to pass the data as raw unformatted text. If I map my text into $content and then pass that to the API
The problem is that when I look at how this is being passed, the receiving API is getting this:
I need it to be somehow stripped down to:
SELECT * from ENTRY
without the [“”]
I understand that SnapLogic deals in JSON, so I’m not sure how I get around a system that doesn’t want it’s data that way. I’ve looked into passing it as JSON, but they don’t seem to accommodate it.
Solved! Go to Solution.
01-11-2022 05:26 PM
I should have remembered this because I used batch size=0 to solve this sort of problem before but Support steered me in this direction:
This worked and removed the json formatting around the raw text.
01-11-2022 01:44 PM
Hi @pcoleman,
Does you get same result even if you send it as string directly from HTTP entity ?
Instead of $content send it as hardcoded string value.
Regards,
Viktor
01-11-2022 01:57 PM
Was a good idea, but unfortunately it seems to pass with the [“”] still.
01-11-2022 02:06 PM
If you haven’t tried to send content-type in headers, try this content-type: text/plain
01-11-2022 02:10 PM
Had it this way…unfortunately…no difference.