Skip to main content

Hi, I am trying to send gmail attachments (Pass in a string, then have >1 attachments in the email without it being zipped).

I have no luck with that, but for some reason in one automation that we previously built
 


When we pass in the value URI returned from another action like this:
 


Gmail sends it out as two separate files.
 


Which is actually contradictory of what the documentation says (It is not possible to send multiple attachments in one single Gmail Run.)

The weird thing is when I copy this string and paste it in attachments manually, it does not work and ends up zipping it again like the usual behaviour!

This seems like undefined behaviour and would appreciate any clarification that can be done on this by staff.

Take note that the action that returns a comma value is a custom action.

UPDATE:

Upon verifying with a couple other actions. It seems that as long as the string was passed in by reference to another action gmail treats it as separate files.

Still would love have some explicit clarification on how this works.


Hi ​@danison 

Gmail Attachments field supports line items.

How to tell: l+] button to add another line item

As long as the data passed in is formatted as an array of line items, then it will work.

If you tried to copy/paste a comma separated string of values that will not work.