Office java scrip addin shortcut not working, load task pane on start also no working ,followed https://learn.microsoft.com/en-us/office/dev/add-ins/design/keyboard-shortcuts

umesh dhandge 5 Reputation points
2024-11-25T05:58:26.0333333+00:00

Note : Hi,

We are using office javascript api for our migration from office 365 excel with cutsom ui ribbon to office js .

We have a requirement that new taskpane shall get open by using some shortcut, we followed the steps mentioned in https://learn.microsoft.com/en-us/office/dev/add-ins/design/keyboard-shortcuts

facing below issues

  1. on locally when running node js server wih http/https protocal ,with hosted shortcut.json and action for the same , when triggering the shortcut, we are getting an error popup in excel a "This add-in could not be started. Close this dialog to ignore the problem or click "Restart" to try again.
  2. On QA server we have same set up running in container ( i.e. shortcut json and actions for the shortcut), when I am running excel with manifest /shortcut json poinint to QA server, nothing is happening, we can see in debug none of shortcuts in shortcut json getting showin in getAllShortCusts() call.

We have another requirement that asap user open the excel and addin loaded, taskpane shall get loaded as open in excel, to achieve this we have updated manifest xml to add below tags

<Action xsi:type="ShowTaskpane"> <TaskpaneId>Office.AutoShowTaskpaneWithDocument</TaskpaneId> <SourceLocation resid="Ourstaskpane url" />

</Action>

But even after this , restarting all server locally , taskpane not getting open after addin loaded successfully.

Please help on this or guide use with proper steps to take

Note:- If we open /close taskpane manually all works fine.

Microsoft 365
Microsoft 365
Formerly Office 365, is a line of subscription services offered by Microsoft which adds to and includes the Microsoft Office product line.
5,372 questions
Excel
Excel
A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
2,048 questions
JavaScript API
JavaScript API
An Office service that supports add-ins to interact with objects in Office client applications.
1,013 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,103 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
10,276 questions
0 comments No comments
{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.