Leandro
Leandro•5mo ago

Preprocessor on flows

Hi guys, in a flow, on can i pass, using an JS expression, the result of a preprocessor that i have on my flow? i tried results.preprocessor or preprocessor.id for like only getting the id of the result and it says it's not defined on the response of the request. Thank you
7 Replies
Hugo
Hugo•5mo ago
the result of the preprocessor will be passed to the inputs of your flow (result object keys must match flow input names) you can then use them using flow_input.
Leandro
LeandroOP•5mo ago
Thank you , i understant it now
manghat
manghat•2mo ago
I am stuck on this. I am not sure I understand. For context: my preprocessor output is : { "id": "bd6b22a3-00fd-4b22-84f2-8c4c4b415df1", "domain": "https://counselect.com", "company_name": "Counselect" } Now in the Input, I have setup the same variable names but I am not able to get the actual data from the preprocessor. What am I doing wrong? 😦
No description
No description
No description
Hugo
Hugo•2mo ago
the preprocessor is only run when triggered externally (e.g. webhook, http, websocket, etc...)
manghat
manghat•2mo ago
Ah I see. So it does not run when testing. Should I just leave the input fields blank in the input block?
Hugo
Hugo•2mo ago
args in the input block are just for testing therefore it doesn't affect the preprocessor
manghat
manghat•2mo ago
Ah bummer. Thanks a tonne. I have been breaking my head over this

Did you find this page helpful?