Get information from delegated email account outlook

Add-in Express™ Support Service
That's what is more important than anything else

Get information from delegated email account outlook
 
Subscribe
Hrishikesh Shahapurkar




Posts: 22
Joined: 2019-09-04
Hi I am trying to get email address from a delegated email account. I am unable to get any information. Can you help me with this please.

Thanks and Regards,
Hrishikesh Shahapurkar
Posted 29 Sep, 2021 12:00:24 Top
Andrei Smolin


Add-in Express team


Posts: 17943
Joined: 2006-05-11
Hello Hrishikesh,

Check Account.CurrentUser for that account; find it in Namespace.Accounts.

Regards from Poland (CEST),

Andrei Smolin
Add-in Express Team Leader
Posted 30 Sep, 2021 05:30:28 Top
Hrishikesh Shahapurkar




Posts: 22
Joined: 2019-09-04
So to explain my case better, I am user A and I have been delegated user B's inbox. So when I initiate a meeting from user B's calendar, I want to retrieve user B's email address. So when I try to retrieve with the Account.CurrentUser for the delegated inbox it returns some sort of encrypted text.

Regards,
Hrishikesh Shahapurkar
Posted 30 Sep, 2021 07:57:57 Top
Andrei Smolin


Add-in Express team


Posts: 17943
Joined: 2006-05-11
Hello Hrishikesh,

You can check whether the encrypted text is the EntryId of the Recipient object representing that user. Also, check https://social.msdn.microsoft.com/Forums/office/en-US/1a38327c-40fb-49b9-998e-d38eb05d3a94/how-to-identify-whose-calendar-we-are-working-on?forum=outlookdev.

Regards from Poland (CEST),

Andrei Smolin
Add-in Express Team Leader
Posted 30 Sep, 2021 10:00:39 Top