Force to open a SharePoint Online Word document using Word desktop application directly from Flow
I need to open the word document which saved in a SharePoint document library using Word desktop application not Word Online when click on the link of the document in Flow's notification email.
By default, the link of the document was opened in the Word Online in browser. I found out a way to use the "ms-word:ofe|u|" before the file URL, e.g."ms-word:ofe|u|https://docUrl", and now I can open the document in Word application directly.
Note: The "Link to item" in Flow contains Guid after the file URL, and you need to remove it from the link URL. I am using the function "concat('ms-word:ofe|u|',substring(triggerBody()?['{Link}'],0,int(indexOf(triggerBody()?['{Link}'],'.docx'))),'.docx') " in a variable action and so I can use it in the Flow anywhere.
You can open file using Excel or PowerPoint too, for more "Office URI Schemes" please see https://msdn.microsoft.com/en-us/library/office/dn906146.aspx.
By default, the link of the document was opened in the Word Online in browser. I found out a way to use the "ms-word:ofe|u|" before the file URL, e.g."ms-word:ofe|u|https://docUrl", and now I can open the document in Word application directly.
Note: The "Link to item" in Flow contains Guid after the file URL, and you need to remove it from the link URL. I am using the function "concat('ms-word:ofe|u|',substring(triggerBody()?['{Link}'],0,int(indexOf(triggerBody()?['{Link}'],'.docx'))),'.docx') " in a variable action and so I can use it in the Flow anywhere.
You can open file using Excel or PowerPoint too, for more "Office URI Schemes" please see https://msdn.microsoft.com/en-us/library/office/dn906146.aspx.
Comments
Post a Comment