JavaScript Zotero.Integration.execCommand("addCitation") fails to connect to Word, though plugin wor

Hi,

I’m trying to use JavaScript from Tools → Developer → Run JavaScript in Zotero to programmatically insert citations into a Word document.

However, when I run the following command:

await Zotero.Integration.execCommand("addCitation");


I get this error message:

Zotero Integration Error:
Zotero could not load the component necessary to communicate with your word processor.
Go to Tools → Add-ons → Extensions in Zotero and make sure that the extension for your word processor is enabled.

The Word plugin itself is installed and fully functional — I can insert and edit citations manually from the Zotero tab inside Word without any issues.
However, the integration call from JavaScript doesn’t seem to connect to Word.

Has anyone encountered this issue before or knows how to make Zotero.Integration.execCommand() communicate properly with Word when the plugin is already active?

Thanks in advance for any help or guidance!


System info (for context):

Zotero version: 7.0.24 (64-bit)

Word version: Microsoft® Word for Microsoft 365 MSO (Version 2509 Build 16.0.19231.20138) 64-bit

OS: Windows 11 24H2
Sign In or Register to comment.