"API is not supported in this platform" office.js error occurred

Diluka Hewage 96 Reputation points
2024-01-02T12:05:00.93+00:00

I am encountering an issue with an Outlook add-in that I have developed. The specific office js error message is "API is not supported in this platform," and it occurs when attempting to execute the OfficeRuntime.auth.getAccessToken({allowSignInPrompt: true, forMSGraphAccess: true}); method to get the access token.

Here are some details:

  • Outlook Version: Microsoft 365 MSO, Version 2311 Build 16.0.17029.20028
  • Platform: 64-bit
  • API Compatibility: isSetSupported('IdentityAPI', '1.3') returns true

User's image

Any insights or guidance you can provide would be greatly appreciated.

Microsoft 365 and Office | Development | Office JavaScript API
Microsoft 365 and Office | Development | Other
Microsoft Security | Microsoft Graph
{count} vote

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.