Merging multiple email attachments from different sources

Hi,

in my scenario, i need to send multiple attachments which are coming from two sources:

  1. an array of collections with file name and text data:

  2. a binary file name , with the parameters: name and data(binary):
    image

i cannot get it to work , i tried to use the array ADD function to combine them :


, but for that i first need to turn it to a json , and binary data is not supported in json so but if i use something like base64 then on the gmail attachments parameter , i will somehow need it to turn it back into binary , because otherwise i just get a text file with the base64 text in it

Any help would be highly appriciated

Thanks

IS there anyone who could help me please ? :slight_smile:

Hi @Idan_Cohen,
It seems you need to add a flag to your JSON “item” definition. If this flag is set to true, you should decode the Base64 data field before using it.
Hope this helps!

1 Like