Skip to main content
Question

Use line item array as input data in app


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?

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.

2 replies

GetUWired
Forum|alt.badge.img+12
  • Zapier Expert
  • 1030 replies
  • May 25, 2021

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 


Forum|alt.badge.img+9
  • Zapier Staff
  • 331 replies
  • May 25, 2021

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.