Closed celowsky closed 5 years ago
@celowsky Did you find a solution for this issue?
Hi, I'm also getting same issue on office for mac 2019
@shakoorattari could you please provide us more details about the Outlook client. Are you using Outlook New UI or Old UI? Also which version are you using and finally provide us with the code snippet to reproduce the issue?
I'm working on writing an add-in compatible with Outlook 2016 Windows desktop client (build 16.0.9126.2315 32-bit) connected to Exchange 2013 on-premises from Outlook with requirement set 1.1, but I can't access the Office.context.mailbox.userProfile object.
Expected Behavior
In the
Office.initialize
function of the add-in, I expect that I can read the value ofOffice.context.mailbox.userProfile.emailAddress
or any other property of the user profile.Current Behavior
I surround the call to
Office.context.mailbox.userProfile.emailAddress
inside of a try-catch, and write the error to the document in the catch statement. I receive the following error when trying to read the value:Steps to Reproduce, or Live Example
Context
My goal is to get the itemId, an EWS token, and the email address of the desktop client user so that another service can use the EWS token to make a request for the raw MIME content. I need access to the message body completely unaltered.
Your Environment
Useful logs
Failing code
(function () { 'use strict';
})();