Open sharepoint word file in users desktop app by clicking on direct hyperlink to word document

nagarjuna aravapalli 26 Reputation points
2021-08-16T04:42:01.563+00:00

In our web application, we have direct link to word document in SharePoint site. So when user clicks on the hyperlink, I would like to open that in users local desktop word application. But I am unable to achieve it. I have tried other work arounds like, when user clicks on the document in the sharepoint site, able to open in word desktop app. But it is still two clicks for user to reach the word desktop app.

Is there any way if we pass any parameters in the url saying open in local desktop app?

Thanks

SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
10,855 questions
Word Management
Word Management
Word: A family of Microsoft word processing software products for creating web, email, and print documents.Management: The act or process of organizing, handling, directing or controlling something.
935 questions
0 comments No comments
{count} vote

Accepted answer
  1. CaseyYang-MSFT 10,441 Reputation points
    2021-08-16T08:32:02.03+00:00

    Hi @nagarjuna aravapalli ,

    You could use the following url as a workaround:

    ms-word:ofe|u|https://xxx.sharepoint.com/sites/xxx/xxx/xx.docx  
    

    Per my test, you could open this word document in local desktop word application directly when you use IE. But you will get "A website wants to open this application." prompte when you open this url with chrome or edge.


    If an Answer is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


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.