Issue with sideloading Outlook Add-In due to 'webApplicationInfo' element Resource domain configuration.

Suraj Sinha 10 Reputation points
2024-11-13T14:58:10.83+00:00

We are developing a React.js based Outlook add-in, hosted at https://cmicpublish.cmicglobal.com/cmicdev/outlookplugin and have successfully initialized Office.js APIs.

Our goal is to use the Office.context.auth.getAccessToken API to acquire an access token.

To achieve this, we need to configure the webApplicationInfo element in the manifest file as per Microsoft's documentation.

https://learn.microsoft.com/en-us/javascript/api/manifest/webapplicationinfo?view=common-js-preview

In particular, the <Resource> section in webApplicationInfo element should include api://verified_domain/{App_ID} as shown in snapshot.
User's image

But we are getting an issue while sideloading manifest file.

  1. Sideloading fails if the domain specified in <Resource> does not match the domain where the add-in is hosted (cmicpublish.cmicglobal.com).
    User's image
  2. We have already set the Application ID URI as outlook.cmicglobaldev.com in the Azure portal.
  3. But when, using outlook.cmicglobaldev.com in the <Resource> section of webApplicationInfo element fails sideloading of the add-in.

Could you confirm whether the domain specified in <Resource> must match the add-in's hosting domain, or if it can be any domain listed in the Application ID URI?

Microsoft 365 and Office Development Other
Outlook Windows Classic Outlook for Windows For business
Microsoft 365 and Office Install, redeem, activate For business Windows
Microsoft Security Microsoft Graph
{count} vote

Your answer

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