Multi Bots- Email Notification

Hi Everyone,

I am working on the process which runs on 3 Bots at the same time.
Could you please help me out what condition we need to place so that after completion of bot run single email should be going out.

Thanks

Hi @gaurav_rpa ,

are those bots consuming the same queue or do they have separate queues?

@gaurav_rpa

Use kind of a locking system

Create an Asset with initial value as NA

  1. In Initialize state set the asset to NA
  2. In End process get the queue items in in progress or new if count greater than 1 then ignore
  3. Else first get the asset created and check if it is NA, if not leave if NA then use set asset and set the asset value as ENvironment.Username
  4. And then get the asset again and check if the value is equal to Environment.Username
  5. If equals then send email else ignore

Always only one bot will go ahead and other bots will leave out through else condition

cheers

We are using Queues

@gaurav_rpa

Please try the above method

cheers

Hi @Anil_G ,

I got some logic from your solution.
What i think is that we can place one condition i.e if the queue items in progress or new count to 0 then email should go out and this condition should be placed in one bot. I think it should work.

Thanks
Gaurav

@gaurav_rpa

I guess you said one process and 3 bots…so all 3 bots will run the same process

So all 3 will check that and all 3 can send the email as well

That is the reason remaining code is also needed

Cheers