How to specify when to send attachment file in BOT

Hi everyone, 

I want to have a condition Yes/No to when to send the attachment

I put the <<if>><< end if>> condition expression to the Attachment Name field in Bot/ send email

kvngo94_0-1651108412490.png

Even though this expression result is False, it still sends the email as below

kvngo94_1-1651108512382.png

 

Do you have any workaround ? 

 

 

 

Solved Solved
0 2 65
1 ACCEPTED SOLUTION

That field is for setting the name of the attachment. You're trying to use it in a very incorrect way.

To conditionally send an attachment or not, you need to make 2 separate Tasks, then use either 2 separate Bots with opposite Event conditions, or a "Branch on condition" Step within a single Bot.

View solution in original post

2 REPLIES 2

That field is for setting the name of the attachment. You're trying to use it in a very incorrect way.

To conditionally send an attachment or not, you need to make 2 separate Tasks, then use either 2 separate Bots with opposite Event conditions, or a "Branch on condition" Step within a single Bot.

Hi Marc, 


Thanks so much for your solution !

Top Labels in this Space