Share via

Getting initialization context in Outlook

Bora 1 Reputation point
2022-01-05T18:55:25.277+00:00

Hi,

Calling the Office.context.mailbox.item.getInitializationContextAsync method throws out error code 9042. When I checked the documentation, it is stated that this method is only available in the preview version.

https://learn.microsoft.com/en-us/office/dev/add-ins/reference/objectmodel/preview-requirement-set/outlook-requirement-set-preview

However, we were using this function without a problem for almost over a year now. It got dysfunctional in the latest versions.

Is it not working because it's in preview mode? Or does code 9042 mean something else?
Here is the error code logged;
image

Thank you

Microsoft 365 and Office | Development | Office JavaScript API
Microsoft 365 and Office | Development | Other
0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.