I have a Trigger that returns a list of custom fields attached to a user’s account in my web app. I have this setup as a dynamic field for an Action.
Right now, when building a Zap with this Action, the Trigger loads the custom fields correctly and I can select multiple, but what this does is, when the Zap runs, passes an array of the selected custom field IDs and passes those IDs back to my web app, as if the IDs were also the values.
What we want to do is:
- User creates a Zap for this Action
- Chooses some custom fields, such as First Name and Last Name
- Be able to assign to these custom fields the value from the Trigger.
An example is when we link to a Google Sheet. That sheet has an email, first name, and last name column. In our web app, email is a static field, but first name and last name are custom fields. I can easily in my Zap have the email field in my Action pull from the email column in the Google Sheet, but I can’t figure out how I write this so that I can choose to use the first name custom field from my Zap and populate it with the first name column in the Google Sheet.
And to add a little bit more info, write now what is passed back to my API in my web app is a 0-base indexed array where the values are the selected custom field IDs. What my API needs is an associative array with a key of field ID and value of whatever I assign to it from the original Trigger.