I am using input fields and dynamic fields. I have been used array of object into dynamic fields code like
The dynamic fields are displaying along with input fields when i creating zaps. The problem is when i going to “Send data” and click on the “Retest action” for testing the input data is passing to the api which i have mentioned into the API configuration code and saving to our crm application but custom field’s data is not saving i.e custom fields data is not passing to the api.
consider the following sample code in api configuration:
According to the api requirements we have to pass all the data to the body and there is “request” array all the input data and custom data have to be pass through the “request” array within body.
The first_name and last_name fields are saving into our CRM application thorugh the api since these are passing through the “request” array.
My question is here when zappier is merging the custom fields with input fields are they passing in to the “request” array ? I guess the custom fields is not including in the “request” array or may be it is out side of body thats why api is not getting the custom fields value. So how do we include the “custom” fields into the “request” array as per aforementioned sample code?
Basically when we declare the array of object into the dynamic field (using input designer) zapier will automatically merge with input fields but if we required to merge in our own way how would we do that.?
kindly provide sample code as an example so we can understand easily and solve the issue. Please advice.
Thanks & Regards
You might have a look at this recent discussion. I think your question is similar:
Note that to test that it’s best to jump directly to making a Zap, and having a look at the monitoring section of the UI. The ability to enter test data for dynamic fields with the built-in UI test component is limited right now.
For an example of the use of the spread operator, you can see it in the doc :