Workflow not working (Dynamic Fields not loading in)
Status: Open · Asked by Dan Cook on · 0 views
The dynamic fields are not loading properly into the Javascript properly.
When I tested it works fine.
When it ran today it did not work and the dynamic fields loaded into Javascript as blanks.
I checked the history and the API call (2nd step) did return results, so the dynamic fields should not have been blank.
Both Javascript steps failed due to the same issue. dynamic fields loading into the javascript as blanks.
I manually rerun the workflow using same data and it failed again.
Hi @dan90,
Thank you for reaching out and for sharing the workflow details.
We checked the task history and observed that there are two fields being mapped from the API Request (Step 2) into the subsequent Code (JavaScript) actions. However, one of the mapped fields (the Metadata field from the API response) is not being returned in the Step 2 response for this execution.

Since that field is missing in the API response, Pabbly Connect is unable to pass a value for it to the JavaScript steps, causing the dynamic field to be received as blank and resulting in the code actions failing.


We recommend reviewing your API Request (Step 2) and ensuring that the required metadata field is always present in the response before the workflow proceeds further. You can also add a Filter condition after Step 2 so that the subsequent JavaScript steps execute only when the required field is available in the API response.
Please verify the API response structure and let us know if the metadata field is expected to be returned for all scenarios. We'll be happy to assist you further.
Thanks Preeti!
I figured out why this one failed now.
It was a false webhook from a payment method I forgot to factor into my workflow.
Hi Preeti I have another issue like one above.
I can see that the data does appear in a previous step but it does not load into the next api step.
It loads in as "" but in the previous step there is in fact an ID with a value.
History ID: IjU3NjYwNTZjMDYzNzA0MzM1MjZjNTUzMDUxMzE1MTY3NTQzNzBmMzYi_p
Could you please share a screenshot showing the exact step and the data you are referring to?
Thanks & Regards,
Arshil Ahmad
? Pabbly.com