Modify the sharepoint file url and add bookmark information

s w 100 Reputation points
2024-04-18T14:22:08.1633333+00:00

In the word file we are able to insert the hyperlink for bookmark (something like bookmark://BookMark1). And when user click on the link it will jump to the pointed bookmark.

I am wondering are we able to add it in the file url? When user open the file, the page should jump to bookmark place directly based on the bookmark information that provided by url.

I need some help finding a way to pass the bookmark information to the Office365 side via url or api or some other smart way if it is possible. Thanks!

Word
Word
A family of Microsoft word processing software products for creating web, email, and print documents.
842 questions
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
12,005 questions
SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
10,685 questions
0 comments No comments
{count} votes

Accepted answer
  1. Alex Burlachenko 990 Reputation points
    2024-04-18T14:46:59.86+00:00

    Hey there, as I know (may be wrong, but), there isn’t a built-in feature in SharePoint or Office 365 that allows you to directly pass bookmark information via a url to open a word document at a specific bookmark. When you open a Word document from SharePoint or Office 365, it typically opens at the beginning of the document. But, you can create hyperlinks in the Word document itself that link to specific bookmarks within the document. When a user clicks on one of these hyperlinks, they will be taken to the corresponding bookmark. If you’re looking to automate this process or implement a more advanced solution, you might consider using the Office 365 Management APIs or Microsoft Graph. These APIs provide a wide range of functionality for interacting with Office 365 and could potentially be used to create a custom solution.


0 additional answers

Sort by: Most helpful

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.