Having issues appending links to Airtable attachement field

So I have an airtable that carries customer data and media attachement via whatsapp.
I have it configured to the point where I can upload images directly into the Airtable attachments field.

However, here is the issue. When I add another image, it overwrites the existing image, and I lose the initially uploaded one.

I have tried passing the existing image as an array and appending new images to that array but I am unable to do so. It keeps giving me the bundleValidationerror.

I have included the data structure for the attachments field so everyone can see what’s happening.

Thanking you in advance!

Hi @Robin_Dhillon,

that’s a commonly difficult task! :slight_smile:
The issue is, that your input (file data from your Airtable module + file URL from the HTTP module) do not match the expected data structure. The merge() function that merges the correctly formatted arrays :slight_smile:

You fix this by using an array aggregator and setting the target structure as the file column.

  1. Add an array aggregator before the ‘update a record’ module and insert the array into the file column

So it looks like the picture above.

  1. Go into the array aggregator and choose the target structure and insert the file URL.

  2. I think you will have to do the same for the already existing image(s). Potentially there is more than one file in Airtable already? Then you’d need to use the iterator → array aggregator.