Question

Use line item array as input data in app

  • 25 May 2021
  • 2 replies
  • 665 views

I want to know if it is possible to use an array as input data in a input field. For instance my Facebook trigger returns the attachments array but only views the first iteration, so in my input fields I can only select the first image from the post. This is logical because if you would map multiple images and then upload a post with only 1 image there would be no input the other input fields. That’s why I want to use the entire attachments array as input so my code can take care of handling single or multiple images. Is this possible?


This post has been closed for comments. Please create a new post if you need help or have a question about this topic.

2 replies

Userlevel 7
Badge +12

Hi @Robert Blaauwendraad 

If you are building an application check out the docs about multiple values here: https://platform.zapier.com/docs/input-designer#allows-multiples 

Userlevel 7
Badge +9

If you expect an array as input from another API (the result of another trigger or action in the user’s Zap), you will use a line item group: https://platform.zapier.com/docs/input-designer#how-to-add-a-line-item-group

 

“Allow multiples” is for allowing the user to map 0 or more arbitrary single valued fields as inputs.