Attachment SendGRid

Hey @FahdERM -

Totally. The “Attachments” property in the SendGrid connector function is actually a list:

"attachments":[
        {
          "content": "$Attachment_b64$",
          "type": "application/pdf",
          "filename": "my_file.pdf",
          "disposition":"attachment"
          }
   ],

What this means is you can pass multiple files to it with additional file upload custom widgets.

"attachments":[
        {
          "content": "$Attachment_b64$",
          "type": "application/pdf",
          "filename": "my_file.pdf",
          "disposition":"attachment"
          },{
          "content": "$Attachment2_b64$",
          "type": "application/pdf",
          "filename": "my_file2.pdf",
          "disposition":"attachment"
          }
   ],

Short of some more Custom Widget work there isn’t a super elegant way to support an unknown amount of attachments. (in this case we would need to build the list in the custom widget and pass the entire list as one text object tot he widget).

Hope this helps,
Pete