Add element to an array/collection

Hi !

I’m trying to add an element to a collection.

I first iterate in all the elements of a shopify basket in order to send it to my ERP.

I put it all into a orderdetails collection, but then I need to add to value at the end.
How should I approach it ? I have tried many option but nothing works.

In ruby coding it would be something like this :
all_item_data << {
‘LineType’=> ‘Miscellaneous’,
‘MiscellaneousChargesCode’ => ‘SHIP’,
}
add_array

thanks !

You’ll need to use the Parse JSON module to create a collection, before you add it to your array.

Screenshot_2024-06-25_200607

Screenshot_2024-06-25_200657

samliewrequest private consultation

Join the Make Fans Discord server to chat with other makers!

1 Like