ehsueh - Hi, is there a way to make sure the re...
Hi, is there a way to make sure the request body (of a REST API trigger) is not parsed as JSON or string first? I need the raw buffer for verification. Tried AI builder (compass), it wasn't able to achieve what I need.
7 Replies
Hi @ehsueh set the Advanced Options to
Text
then make a request with content type set to raw, it will work.

Thank you! That worked!!
Can I enable JS in those input fields? I want a
raw
field that's raw plain text for verification. And keep the original body
field as JSON (I tried JSON.parse() but it would just concate the string). The rest of the workflow already assumed body() is JSON so I figure that will be the easiest way without manually going through all the nodes checking where I've used body.
you can handle this after input processing in the worklow nodes.
but then I'll have to manually update all nodes after
when using raw body, you should not parse it to stringify, the other option for request content type
application/json
handles this.