-
Notifications
You must be signed in to change notification settings - Fork 120
Open
Labels
Area: WordIssue related to Word add-insIssue related to Word add-ins
Description
Your Environment
- Platform: PC desktop
- Host: Word
- Office version number: 2308 (Build 16731.20600 Click-to-Run)
- Operating System: Windows 11 E, 10.0.22631
Expected behavior
The uniqueLocalId property of a Word.Paragraph should be a GUID string.
Current behavior
The uniqueLocalId property of a Word.Paragraph is always null.
Steps to reproduce
- Using the hello-world-example, but practically any add-in where you access a paragraph's unique id would do.
- Replace the contents of the original
sayHello()function lines 27-34 with the following:
Word.run(async (context) => {
const firstParagraph = context.document.body.paragraphs.getFirst();
firstParagraph.load("uniqueLocalId");
await context.sync();
console.log(firstParagraph.uniqueLocalId);
});- Run this in desktop Word as you do:
office-addin-debugging start src/manifest.xml desktop. - Observe that the
uniqueLocalIdisnull.
Additional details
Office.isSetSupported("WordApi", "1.6")returnsfalse, which shouldn't be the case - and it does so for 1.1 too.- I cannot reproduce this issue on the web version. Unique IDs are returned as expected there.
- I could very well be missing something obvious.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Area: WordIssue related to Word add-insIssue related to Word add-ins