Skip to main content
Best answer

Zapier CLI InputFields - How to add array of objects

  • December 9, 2024
  • 1 reply
  • 28 views

I'm doing a CRM integration and I need to be able to create a field that will be an array of objects, namely 2 more fields. How can I do this?
For simple types, this can be done as follows:

{
  key: 'usersIds',
  label: 'Users IDs',
  type: 'integer',
  list: true
},


But I can't do it for the complex variant:

{
          key: ‘social’,
          label: ‘Social’,
          list: true,
          children: [
            {
              key: ‘id’,
              label: ‘ID’,
              type: ‘string’,
            },
            {
              key: ‘type’,
              label: ‘Type’,
              required: true,
              choices: {
                Facebook: ‘Facebook’,
                Instagram: ‘Instagram’,
                Telegram: ‘Telegram’,
                Twitter: ‘Twitter’,
                Viber: ‘Viber’,
                Whatsapp: ‘Whatsapp’,
                Linkedin: ‘Linkedin’,
              }
            },
            {
              key: ‘link’,
              label: ‘Link’,
              required: true,
              type: ‘string’,
            }
          ]
        }

 

Best answer by Troy TessaloneBest answer by Troy Tessalone

Hi ​@Parano1_a 

For Zap app integrations using the Zapier Developer Platform, make sure to post topics in this category: Developer Zone

https://community.zapier.com/p/developer-zone

View original
Did this topic help you find an answer to your question?
This post has been closed for comments. Please create a new post if you need help or have a question about this topic.

1 reply

Troy Tessalone
Forum|alt.badge.img+14
  • Zapier Expert
  • 30727 replies
  • Answer
  • December 10, 2024

Hi ​@Parano1_a 

For Zap app integrations using the Zapier Developer Platform, make sure to post topics in this category: Developer Zone

https://community.zapier.com/p/developer-zone