Question

Dynamic field missing in the Zap form

  • 24 September 2021
  • 1 reply
  • 11 views

Userlevel 1

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?


1 reply

Userlevel 1

Deleted this action, re-created again and it worked.

Reply