Question

Nested line items

  • 10 November 2020
  • 4 replies
  • 127 views

Userlevel 1

Hello Zapier Community.

I have a trigger that produces line items. And one item stores an array of image URLs when the other have only string or number values. 

Example data: 

[
{
name: 'Test item',
quantity: 2,
imageURLs: [
'http://example.com/image1.png',
'http://example.com/image2.png'
]
},
{
name: 'Test item 2',
quantity: 1,
imageURLs: ['http://example.com/image3.png']
}
]

The question is how to represent imageURLs as a nested line items?


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

4 replies

Userlevel 7
Badge +10

Hi @topvova 

I think @ikbelkirasan can probably help with this one.

Userlevel 7
Badge +12

@topvova - Can you tell us more about your use case? As far as I understand it, imageURLs can already be used as line items.

Userlevel 1
{
name: 'Test item',
quantity: 2,
imageURLs: [
'http://example.com/image1.png',
'http://example.com/image2.png'
]
}

This object is already a line item. And this line item contains imageURLs array. I would like to use it as NESTED LINE ITEM, but it does not work so. Is it possible at all to have NESTED LINE ITTEMS (line itetms that contain array of another ittems)? 

Userlevel 7
Badge +8

Hey @ikbelkirasan - Did you want to take a look at this reply and see if we can help out? Thanks!