Dynamic Multi-conditional If Statements

I am building a process that routes actions based on email sender. I have predefined routes for various addresses.

For example, if the email is from Bob, do A, if the email is from Sue, do B, if the email is from Joe, do C, and so on where each letter would represent an entirely new and different workflow. There are potentially an infinite number of addresses and conditions.

Coming from AA, I would just add an IF branch under the original. How do I construct this in UiPath?

So far, I have a sequence that reads messages, grabs the address, and invokes a workflow. However, I do not want to nest a bunch of IF statements.

Any help is appreciated.

Thanks.

You can use switch conditions where you can mention cases and each case can have different workflows based on the Mail received

Thanks
H&M

I assume since item.From is converted to and assigned to a string, our switch variable cases would also be strings? And do they need to be enclosed in quotes?

Thanks.

Refer this Post

Thanks
H&M

2 Likes

Perfect. Thanks!

1 Like

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