Hello there,
I’m trying to add a dynamic field to my zap along with normal fields, and it’s just never displayed. Every other field is present (both in the action preview and while creating a zap), but not the dynamic one. Here’s the code I’m using for it:
const options = {
url: 'https://example.com',
method: 'GET',
headers: {
'Accept': 'application/json',
'X-Api-Key': bundle.authData.apiKey,
},
}
return z.request(options)
.then((response) => {
response.throwForStatus();
const results = response.json;
return {
'key': 'myKey',
'required': true,
'choices': results.items.map((i) => ({[i.id]: i.name})),
};
});
Any ideas?