Merging arrays work until... I use the output in a different module

I’m having trouble merging arrays (of collections) and then using it in a module. I’m using this to add a new attachment to a (possible) existing array of attachments.

  1. Get the current attachments
  2. Create a new attachment array
  3. Merge the arrays

I’m using a Set variable module to test my output and it is perfect.

However as soon as I use it in my update module the content converts to [Collection], [Collection]


What am I missing to get the full output in to the next module?

Hello @Mirjam,

Welcome to the Make Community!

In the Body field, it expects text input.
31.Attachments is an object, and [Collection], [Collection] is how it is converting it to text.

You can try placing your 31.Attachments as input to a Transform to JSON module, then use the output of that in your Body field.
You may need to adjust the other text in the Body field to align with the JSON output.

1 Like