I am using get outlook mail message activity to read emails and I need to process emails from a particular sender but usually they are sent via On Behalf. Example, when I manually open the email it will say the sender is:
Beth Lodangco on behalf of XXX Investigation team
when using UIpath to get the outlook properties, either Sender or From, it will always return the email address of the original sender, in my example it is BethLodangco@xxx.com.au where I would like it to be InvestigationTeam@xxx.com.au. Is there a way to get the on behalf email address or at least the display name?
Here is the screenshot. So when reading this sample, I can only get the .Sender or .From properties which will always return ‘Robot1’. I would like to get the email or at least the display name after ‘on behalf of’
I am using get outlook message where in it returns a List of MailMessage, however the properties seem limited because it doesn’t have .SentOnBehalfOfName or .ReceivedOnBehalfOfName.
Thanks, as always, for your help. My problem, though, is a little different.
My intention is to get the outlook sender property when I receive the Email. Let’s say I receive an email that says “X” on behalf of “Y”. When I receive this email using Get Outlook Mail Message and read the Sender or From address, I only get “X” as output, but I actually want to know what “Y” is.
I would like to refresh this thread. I need to extract “From” value, not “Sender” from email using Outlook.
The email contains two distinct fields – From & Sender, which contain different values, see below:
But UiPath GetOutlookMailMessages activity returns the same value for both fields: