Hello everybody,
iam new in Uipath and i have a question. I want to check with uipath robot email in my inbox auf outlook.
Now i use the activity Get Outlook Mail Messages to get my mail messages . then i have a for each it should give me out the body of alle unreaded messages in the inbox.
how can i creat a variable of them.
I would like to use an if loop to check whether emails with certain content have arrived in the inbox
you can use directly the variable mail.Body inside the For Each in order to check for a certain content.
For example you can add an If statement inside the For Each with something like
mail.Body.ToString.Contains(âExample Textâ)
You can also use the filter function inside the Get Mail Message activity.
Kindly refer to this post, you just have to use Body instead of Subject
Can you please give me a example for that ? I cant solve it by myself.
In this 3 ifs it should check if there the names ( Mike, Frank, Gil) in the body.