I wanna know the filtering syntax and the limitation of the “Get Outlook Mail Message” activity.
Firstly, I tried to extract my outlook mails without filtering and use the syntax (MailMessage(0).from.ToString) to extract the sender info and the sender info I get is the following: “UiPath Help Desk” firstname.lastname@example.org
Yes of course it is possible. Fetch the “FROM” string in a variable(ex:str_FromName) and check whether str_FromName.contains(“Uipath Help”).
Check and let me know whether it suits to your requirements…
I try to find out more about your method, but i have real Problems to understand it.
Here is my issue:
I want to filter a Postbox for a specific email adress - prefix (@something.com).
I cannot use From, because it only works with what it sees aparently. Example:
[FROM]=‘Miller Peter’ works
[FROM]=‘email@example.com’ does not work
but how do i do
If i copy your example and adapt it,so it might work i got an error.
I did solve my own issue by adjusting the Code, but it only works for external mails though, but that must suffice. its only half pleasent for testing purposes.
I hope someone is learning something from my experience and discription, so here are my different Statements and what i learned: From Statement:
“[FROM]=‘Mustermann Max’” Sender Email Adress Statement:
“[senderemailaddress]=‘firstname.lastname@example.org’” Sender Email Adress with Wildcards
“@SQL=” & Chr(34) & “http://schemas.microsoft.com/mapi/proptag/0x0065001f” & Chr(34) & " LIKE ‘%@testinfo.com’"
I also have issue with filtering messages. I’m working on the UiPath Studio v.2018.3.3
In the activity Get outlook mail messages I put filter like:
“[FROM] = ‘NameAndSurname’”, and what I receive is error message: “Property ‘From’ is unknown”.
Any of you may know, why this error is popping out?
I know it has been quite a while, but I just had the same problem and found why.
My Outlook is not in English, but in French, so the property is not [FROM] but [DE] (or even [De], seems like the case don’t change anything).
So, I guess if your Outlook is not in English, you could correct this problem by changing the “From” for the translation in your language (seems like we can’t really automaize process using Outlook with UiPath if we have differents langages inside our company, or we would need to put into action a switch or to create variable with the tag like “from” and their value would change depending of our Outlook langage).
By the way, does anyone have a link with the whole documentation about this ? Because I found about Chapter 11: Searching Outlook Data | Microsoft Learn, but it’s only if you try to use the syntax with “@SQL=…” and I can’t find the usual tag like “senderemailaddress” (which I’m trying to find the French equivalent right now ).
In trying the [FROM] = @email.com method, Studio was not giving me an error, but simply ended the execution. It wasn’t until I removed the filter, did the automation continue. I’ve commented on another Get Outlook Mail Filtering post and hoping someone has an update to this. I’d like to filter based on a wildcard instead of exact emails.