With AttachmentsCollection Parameters Not sending file via Mail

Hi all,

I’m using Send Outlook Mail Message activity and if process is ok send mail with file(txt,xls, etc) if not don’t send file. I have AttachmentsCollection parameter but i do not know how can i send without file??

Thank you.

HI @Kuki_Force

Use If activity Check whether the process Ran OK or NOT.

If the process ran OK

Then → Use Send Outlook mail message activity with the Attachment

Else → Use Send Outlook mail message activity without the Attachment

Regards
Gokul

1 Like

Hi

I’m using sendmail workflow and writing inside of the parameters. When i blank the parameters value or couldn’t find a file, the program gives me an error Path does not exist.

I cannot create another mail activity or change smt.

Thanks.

HI @Kuki_Force

Can you share the screenshot of you workflow?

Why did have the Path does not exist error?

If the process will ran successful Then the path will create ah?

Regards
Gokul

1 Like

The program is creating a file before sending a mail. But i found the solution

My AttachmentsCollection variable is AttachFiles as a string array(default type)

**

If you assign attachfile = {} like this the program sends without file.

**
If you write {“”} this it is going to be get path couldn’t find error.

By the way, thank for response and help. @Gokul001

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.