BOTS - Process Fault

Guys
I’m creating two BOTS.
BOT1 Sends an email to Person A
BOT2 Sends an email to person B
(Or it is supposed to)

If I set Person A as the email recipient within Process1 for BOT1 it works fine.
If I then set Person B as the email recipient within Process2 for BOT2 Process1 inherits Person B also.

So if I put Person A as the recipient in any Process, Person A is inherites in ALL Processes??
So if I put Person B as the recipient in any Process, Person B is inherites in ALL Processes??

1 Like

Sounds potentially like you might have 2 bots/process sharing the same task.

I suggest you have just one bot that runs 2 processes. Either one after the other. Or with a Branch on Condition

4 Likes

Thanks Simon.

I would think the branch suggestion would be the way to go. Within my app I have two conditions:

If [TagField] = “Yes” send email to Person A
If [IntMail] = “Yes” send email to Person B

Does this sound do-able and is there any documentation for me to study?

Cheers

I couldn’t work this out so I reverted back to an ENUM to select the recipient, this seems to work fine now.
Thanks for the info.
Cheers

1 Like

I think you should give a try to understand all the details about Bots.
I mean… don’t give up!
Decitions made because you couldn’t understand the way something works end up being a pain in the medium-long term.
Do your best to do it the best way now.

3X_e_e_ee6127399e5092657b419db22037d3fb75eb7882.gif

3 Likes

Good advice. I needed a quick solution for my App so this works for now. I will test with the BOTS on a test App.

Thanks again

3 Likes

Hey Dave_Willett,

I see some people with some super helpful suggestions on how to get this fixed up for you. I have a kind of diagnosing question just to see cause I made this error myself.

By chance is the app still in “Not Deployed” mode? I found I was having trouble sending multiple emails with that because it was only sending to the app owner (which was me).

Not saying that’s what you are doing, but just covering some bases since it’s something I wish I had caught for myself so I wasn’t beating my head against a wall wondering why it wasn’t working haha!

Have a good one!
Cale

1 Like

Hi Cale
It is deployed and I stuck to the ENUM way, thus giving me more opportunity to send and CC to many other recipients It works for me and I am also studying the BOTS.

Regards

2 Likes

Dave_Willett:

If [TagField] = “Yes” send email to Person A> If [IntMail] = “Yes” send email to Person B

Not sure if this is relevant. There would be 3 options for this.

Use 1 branch, 1 task
[TagField] = “Yes”
If true sends to Person in Task, otherwise ends

Use 1 branch, 2 tasks
[TagField] = “Yes”
If true sends to Person in Task1, otherwise sends to Person in Task2

Use 2 branchs, 2 tasks
Branch 1 [TagField] = “Yes”
If true sends to Person in Task1, otherwise does nothing
Then it does
Branch 2 [IntMail] = “Yes”
If true sends to Person in Task2, otherwise does nothing