UiPath: Get From - Get Outlook Mail and For Each throws Object reference not set to an instance of an object

Hey guys,

i am looking for a solution since 1 1/2 hours now and dont get it…
I just want the sender mail adress for internal mails but i always get the wrong instance of an object…

image

Get Outlook Mail Message variable output:
colNewIntMail → List

Assign sender → String

I don’t get why this Object throws an exception… Could sb help me?

Thanks :slight_smile:

Hi @HeyThereImNew

To get sender email address u can try something like this

in the writeline i had used
item.SenderEmailAddress.ToString to retrive the email address of sender

Regards
Nived N
Happy Automation