Gmail Attachement Filter / Send an Email "if empty"

hey guys,

cant get my head around how to handle this one:

  1. pdf’s getting filtered

After that i want to send an email, but i get the following error:

  • Missing value of required parameter ‘fileName’.
  • Missing value of required parameter ‘data’.

I know this is happening, because when NO pdf is in the mail the parameters are empty in this module and it wont send. I tried something like this - to send the email and ignore empty attachement parameters, but it doesnt work:

my “code” is wrong?

cheers guys :slight_smile:

Hi @Hannes_H

You can map the array in this way, allowing the email to be sent even if there are no attachments.

Best regards,

Msquare Automation
Gold Partner of Make
@Msquare_Automation

1 Like

Oh nice! Such an easy fix, thank you!

1 Like