I am integrating my API with Zapier and I am faced with a trouble. I am sending data from API in this format:
{
"email": "player@domain.com",
"phoneNumber": "+380991234567",
"fullName": "John Doe",
"termsAccepted": true,
"extra": "{\"city\":\"New York\", \"hobby\":\"music\"}",
"campaignId": 1,
"createdAt": "2021-03-16T12:36:44.595Z",
"updatedAt": "2021-06-24T21:18:47.871Z"
}
Every time API send extra field with different structure. For next request data can be in another format:
{
"email": "player@domain.com",
"phoneNumber": "+380991234567",
"fullName": "John Doe",
"termsAccepted": true,
"extra": "{\"car\":\"Audi\", \"country\":\"USA\"}",
"campaignId": 1,
"createdAt": "2021-03-16T12:36:44.595Z",
"updatedAt": "2021-06-24T21:18:47.871Z"
}
For the trigger, I added user input data to choose the fields to process from the extra field, but I don't understand how to dynamically add this data to the sample data and output fields so that the user has access to it when the ZAP is created.
I would be grateful for any help