Hi @KitLee,
I believe the Scan and Upload Field that you are getting from the Webbook is Google Drive ID for the uploaded document, What I will suggest is to have two different path so that you can then use Download a File beforehand to pass that as part of the attachment field, or you can simply use Iterator followed by Array Aggregator, So Something like this should work for you,
- After the Webhook Module add an Iterator Module, this will take Scan and Upload Field as Input and will iterate over the uploaded document if any.
- Add a Download a File Module of Google Drive, that will take input from the iterator and download the file which we will later use as attachment
- Add an Array Aggregator after the last module and then select target datatype as Email Attachment in the Gmail Module, for this to be reflected you need to have an Gmail Module after the array aggregator, Please ensure that Iterator is used as Source Module.
- Now for the Send an Email part, go to the last module and basically enable mapping in the attachment field and use output of Array Aggregator as input,
You can try this blueprint for testing as well, so what this does is regardless of whether you have an attachment or not, will send an email.
blueprint (2).json (17.2 KB)