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.
Microsoft 365 and Office | Development | Other
Microsoft 365 and Office | Development | Other
Building custom solutions that extend, automate, and integrate Microsoft 365 apps.
Outlook | Windows | Classic Outlook for Windows | For business
Sign in to answer