โ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.