I am running multiy bot so once its done need to send single mail

hi all

i am running my process in multiple bots once its done need to send the single mail, how can i do that.

thank you!!!

Are you using queue in your process?

1 Like

@pradeepwani0509 , yes i am using queue!!!

Hi @vineelag

In Success state you can send mail

1 Like

@lrtetala, thank you!!!

but can you elaborate this in detail please.

And in above screens shoot why we are sending for each transection ?

@vineelag

After each transaction if successfully done then it will go to Success state then we can send mail

1 Like

Like you are using multibot architecture, then just do one thing: place email logic in the end process of any of the processes (bots). and keep other processes as they are.

1 Like

@lrtetala, thank you

can you share this XAML with me

note: one doubt like for each transection if its success it will go to success

can you tell me little detail

@pradeepwani0509, @lrtetala

But i want to send output mail from the bot which is done the last transection, please kindly let me know the solution.

@vineelag

Sorry for the confusion, If you want to send mail after all transactions then better to send mail in End Process state then it will be send mail at single time after all transactions.

1 Like

Use Get Queue Items activity in the Final State to check if the queue contains transactions in “New” or “In progress” state. If not, it means that there are no more transactions to process.

To ensure that only one bot sends the email, you could use an Orchestrator asset. One option is to after sending the email, writing the current date to the asset.

So, after checking that the queue is empty, check the asset value. If it contains current date, the email has already been sent and current robot shouldn’t send it. If it’s some other date, update the asset value to current date and proceed with sending the email.

2 Likes

@vineelag

If only one email needs to be sent …then implement the following logic in end process

For locking you can create an asset and in end process check if asset is na then write the username and then again retreive and check if it is the same username …environment.username will give the details…if they match then create report else do not create as some other bot would have acquired the lock and after the process set it back to na for next run

Cheers

1 Like

Create an Asset to store the last date the email was sent.

Add some logic in so that when there are no more queue items the automation sends an email and sets the Asset value to today, but only if the Asset value is not already today.