Can a Word Add-In Capture Custom Parameters Passed in Word URl?

s w 110 Reputation points
2024-05-10T20:32:20.36+00:00

I'm developing a Word add-in tool that navigates to a bookmark based on its name. I aim to pass a custom parameter to specify the bookmark name, but I'm unable to find a method to achieve this.

The 'context.document.url' only provides the document's path URL and doesn't include any custom parameters passed.

Is there a method to pass a custom value to my add-in? I don't want to add the bookmark as a metadata in my file, as the bookmark name may vary depending on the user's selection.

Thanks for helping!

Microsoft 365 and Office Development Other
Microsoft 365 and Office SharePoint Development
Microsoft 365 and Office Word For business Windows
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.