Question

Nested line items

  • 10 November 2020
  • 3 replies
  • 43 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?


3 replies

Userlevel 7
Badge +9

Hi @topvova 

I think @ikbelkirasan can probably help with this one.

Userlevel 7
Badge +8

@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)? 

Reply