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

Suraj Sinha 5 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://zcusa.951200.xyz/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?

Office
Office
A suite of Microsoft productivity software that supports common business tasks, including word processing, email, presentations, and data management and analysis.
1,733 questions
Outlook
Outlook
A family of Microsoft email and calendar products.
4,065 questions
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
12,331 questions
Office Development
Office Development
Office: A suite of Microsoft productivity software that supports common business tasks, including word processing, email, presentations, and data management and analysis.Development: The process of researching, productizing, and refining new or existing technologies.
4,012 questions
Outlook Management
Outlook Management
Outlook: A family of Microsoft email and calendar products.Management: The act or process of organizing, handling, directing or controlling something.
5,296 questions
0 comments No comments
{count} votes

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.