Hi! I’m working on a new action for our integration. The use case is more or less like this:
We require an action that’s going to create a contact in our app. A contact has certain fields (name, email, birth date, etc.). Some of these fields are standard for all customers, and some of them are custom. We have an API that gives us all those fields. The customer is not required to send all the fields, he may use only a subset of them.
What I’m wondering is, what’s the best way to send this data to create a new contact to our API?
I have been trying to use a “dynamic dictionary”, but didn’t have much success so far. My idea was: use a dynamic dropdown for the dictionary key, populating the dropdown with the fields that our API gave us. The user selects what field he wants to send, and sets the value for that field using the data from a previous step or manually.
Is this the correct approach, or is there a better alternative to solve this? Is there a similar example that I can follow?
Thanks!