I have integrated created one Add-In to be integrated in Outlook Mail.
I have used Office inbuilt code (Javascript Code) for it.
Now to test Add-in i have signup in Microsoft with my personal email id.After sign up i found that in Outlook Mail, there are two different Mail Ids in Profile.
like
- alex.p@***.com
- outlook_1203434@outlook.com
now i need the first one for validation but i am getting the second one every time.
I used below code for that.
Office.initialize = function (reason) {
item = Office.context.mailbox.item;
console.log(Office.context.mailbox.userProfile.displayName);
console.log(Office.context.mailbox.userProfile.emailAddress);
}
Please suggest me some other way to get the users email id.