Hi Guys! I need your help with the following scenario:
A list of products is returned from Shopify.
I need to add a record in Airtable with one o more “Attachments”, depending on what is returned from Shopify. Here I get the following error: Array of objects expected in parameter in field “Adjunto” (Attachment).
This will, of course, only import the first image.
To create the correct array, you could Iterate over the Images array, and then use an Array Aggregator to build the correct collection to map to the Airtable app. If that sounded complex, i’ll walk you through it!
Select your Iterator as the Source Module.
Your Target Structure Type will be your Adjunto field in the Airtable module.
Map the File URL from your Iterator module.
Hi Terry! Thanks for your reply.
I wanted to avoid adding more modules to my scenario.
Previously, I was using Google Sheets and this function worked fine to return all the urls separated by commas. Is there a workaround like this?
I found a workaround.
As the json cannot be passed directly in the “Attachment” field because it is considered just a string. I used the Json Parse module.
I also used an If statement to create the json correctly. In my case, I only needed 3 images.