In Office.context.mailbox.item.getInitializationContextAsync, asyncResult is supposed to be a string, but instead it is coming as JSON object in Outlook Desktop.
Naga Varun Kamichetty
0
Reputation points Microsoft Employee
We’ve encountered a discrepancy with mailboxItem.getInitializationContextAsync. In Outlook on the web(OWA), asyncResult.value returns a string, whereas in the desktop version, it returns a JSON object.
Because of this inconsistency, JSON.parse of async result fails on the desktop version, while it works fine in the browser.
Sign in to answer