Forum Discussion
What I’ve done is to add the json schema for the rest post in a JSON formatter snap, mapped my input directly to that schema, and then removed the formatter snap in place of the rest post snap.
Here is where you can add the schema:
Thanks for the reply @acesario . Yeah, i was trying to play around with the formatter snap, I was having a bit of a hard timing understanding how i’d map directly to it. Also, i seemed to then be forced to use a snap that had a triangular input rather than the REST POST which used the circular. But what i eventually ended up doing was actually adding in the nested format in the mapper without the formatter added to it and the output body looked exactly how I needed it to.
i’ll need to try it with a larger file filled with more records but as of now it looks like this’ll work.
Lots of learning going on.
Thanks for the sample Aleung. Do you have an example of this working for powershell? I keep getting the error - in _execute_child OSError: Cannot run program ““powershell”” (in directory “c:\opt\snaplogic”)
Related Content
- 5 years ago
- 4 months ago
- 10 months ago