Automatically open a task pane when an add-in is installed
Hi Team,
We have requirement where the task pane should open automatically when any word document is opened.
We have developed custom word add-in and the manifest.xml file is deployed under Microsoft Admin Center --> Integrated Apps
and Custom developed solution is deployed under the Azure web app and
Tried adding the below xml in manifest.xml file under admin center
<Action xsi:type="ShowTaskpane"> <TaskpaneId>Office.AutoShowTaskpaneWithDocument</TaskpaneId> <SourceLocation resid="Contoso.Taskpane.Url" /> </Action>
Added the below code index.tsx and taskpane.ts file
Office.context.document.settings.set("Office.AutoShowTaskpaneWithDocument", true); Office.context.document.settings.saveAsync();
When we run the add-in local environment using "npm start" then task pane opens automatically But after deploying with above changes the task pane not opening automatically. Are we missing anything, PFB the reference article we have tried.