Leandro
Leandro6d ago

Body of a preprocessor

hi guys, i'm using a preprocessor in my flow that should get the body of the request and pass it to the preprocessor result so that i can use in the input of my flow. But the way i'm using, does'nt seem to work because the preprocessor doesn't get the body of the request.Why? Only query, params and others but not the body are in the top level Thank for your help
No description
No description
No description
No description
1 Reply
Hugo
Hugo5d ago
Hi, the body keys are passed alongside wm_trigger for instance if you're sending { "key1": ..., "key2": ... } you need to set as parameters of your preprocessor to (key1: any, key2: any, wm_trigger any) other option is to enable the Wrap body option on the http trigger which will make the whole body available at the "body" key so: (body: any, wm_trigger, any)

Did you find this page helpful?