{"id":4163,"date":"2020-04-27T11:50:01","date_gmt":"2020-04-27T09:50:01","guid":{"rendered":"https:\/\/help.metashare.com\/app\/help\/faq\/should-i-password-protect-documents-that-are-stored-in-sharepoint-metashare-copy\/"},"modified":"2025-08-13T13:52:57","modified_gmt":"2025-08-13T11:52:57","slug":"how-do-i-create-links-to-documents-using-office-uri-schemes","status":"publish","type":"page","link":"https:\/\/staging-help.metashare.com\/en\/metashare\/faq\/documents\/how-do-i-create-links-to-documents-using-office-uri-schemes\/","title":{"rendered":"How do I create links to documents using Office URI Schemes?"},"content":{"rendered":"\n<p>You can create links to documents in SharePoint based on how you want the documents to be opened (View document, Edit document or New document from template). The syntax that you have to use is:<br><code>[Scheme-name]:[Command-name]|u|[Command-argument-1]<\/code><\/p>\n\n\n\n<p>Examples:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>To view a document:<br><code>ms-word:ofv|u|https:\/\/contoso\/documents\/budget.docx<\/code><\/li>\n\n\n\n<li>To create a new document from template:<br><code>ms-word:nft|u|https:\/\/contoso\/templates\/budget.dotx<\/code><\/li>\n<\/ol>\n\n\n\n<p>Explanation of the different parts in the syntax:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>\u201cScheme-name\u201d refers to the type of application that should be invoked. The options are:\n<ol style=\"list-style-type:lower-alpha\" class=\"wp-block-list\">\n<li>MS Word: ms-word<\/li>\n\n\n\n<li>MS PowerPoint: ms-powerpoint<\/li>\n\n\n\n<li>MS Excel: ms-excel<\/li>\n\n\n\n<li>MS Visio: ms-visio<\/li>\n\n\n\n<li>MS Acess: ms-access<\/li>\n\n\n\n<li>MS Project: ms-project<\/li>\n\n\n\n<li>MS Publisher: ms-publisher<\/li>\n\n\n\n<li>MS SharePoint Designer: ms-spd<\/li>\n\n\n\n<li>MS InfoPath: ms-infopath<\/li>\n<\/ol>\n<\/li>\n\n\n\n<li>\u201cCommand-mame\u201d refers to how the document should be opened. The options are:\n<ol style=\"list-style-type:lower-alpha\" class=\"wp-block-list\">\n<li>View Document: ofv<\/li>\n\n\n\n<li>Edit Document: ofe<\/li>\n\n\n\n<li>New Document from Template: nft<\/li>\n<\/ol>\n<\/li>\n\n\n\n<li>\u201cCommand-argument-1\u201d defines the URL to the document. The maximum path length is 256 characters for all apps except Excel, where the limit is 216.<\/li>\n<\/ol>\n\n\n\n<p>A simple way to create a URI link for a document is:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><a href=\"https:\/\/staging-help.metashare.com\/en\/usermanual\/how-to-select-deselect-documents\/\">Select the document<\/a>\u00a0and click on the \u201cOpen in\u201d function, on the horizontal toolbar:<br><img loading=\"lazy\" decoding=\"async\" width=\"1162\" height=\"720\" class=\"wp-image-12313\" style=\"width: 700px\" src=\"https:\/\/staging-help.metashare.com\/wp-content\/uploads\/how-do-i-create-links-to-documents-using-office-uri-schemes-1.png\" alt=\"\" srcset=\"https:\/\/staging-help.metashare.com\/wp-content\/uploads\/how-do-i-create-links-to-documents-using-office-uri-schemes-1.png 1162w, https:\/\/staging-help.metashare.com\/wp-content\/uploads\/how-do-i-create-links-to-documents-using-office-uri-schemes-1-300x186.png 300w, https:\/\/staging-help.metashare.com\/wp-content\/uploads\/how-do-i-create-links-to-documents-using-office-uri-schemes-1-1024x634.png 1024w, https:\/\/staging-help.metashare.com\/wp-content\/uploads\/how-do-i-create-links-to-documents-using-office-uri-schemes-1-768x476.png 768w\" sizes=\"auto, (max-width: 1162px) 100vw, 1162px\" \/><\/li>\n\n\n\n<li>In the dialog window that pops-up, right-click the &#8220;Open in app&#8221; button and select the &#8220;Copy link&#8221; option:<br><img loading=\"lazy\" decoding=\"async\" width=\"692\" height=\"532\" class=\"wp-image-9613\" style=\"width: px\" src=\"https:\/\/staging-help.metashare.com\/wp-content\/uploads\/Copy-link-to-URI-scheme.jpg\" alt=\"Copy link to URI scheme\" srcset=\"https:\/\/staging-help.metashare.com\/wp-content\/uploads\/Copy-link-to-URI-scheme.jpg 692w, https:\/\/staging-help.metashare.com\/wp-content\/uploads\/Copy-link-to-URI-scheme-300x231.jpg 300w\" sizes=\"auto, (max-width: 692px) 100vw, 692px\" \/><\/li>\n\n\n\n<li>The copied link will be something like this:<br>ms-word:ofv|u|https:\/\/contoso\/documents\/budget.docx<\/li>\n\n\n\n<li>Now, the only thing you need to do is to eventually change &#8220;ofv&#8221; to either &#8220;ofe&#8221; (if you want to edit the document) or to &#8220;nft&#8221; (if you want to create a document from template).<\/li>\n<\/ol>\n\n\n\n<h3 class=\"wp-block-heading\">Note<\/h3>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Previously, it was also possible to define the default location to where files should be saved to, when creating a document from a template. Unfortunately this is not supported any more and Microsoft has no plans to fix this. The URI syntax for this was:<br><code>[Scheme-name]:[Command-name]|u|[Command-argument-1]|s|[Command-argument-2]<\/code><br>Where \u201cCommand-argument-2\u201d defined the URL to the default folder where the files should be saved to.<\/li>\n\n\n\n<li>Further information about Office URI Schemes can be read on&nbsp;<a rel=\"noreferrer noopener\" href=\"https:\/\/docs.microsoft.com\/en-us\/office\/client-developer\/office-uri-schemes\" target=\"_blank\">this page<\/a>.<\/li>\n<\/ol>\n\n\n\n<div class=\"wp-block-group has-text-bright-color has-accent-1-background-color has-text-color has-background has-link-color wp-elements-5715d999d759a44a854d1a0508fae595\"><div class=\"wp-block-group__inner-container is-layout-constrained wp-block-group-is-layout-constrained\">\n<h2 class=\"wp-block-heading has-text-bright-color has-text-color has-link-color wp-elements-d1bac14c5327bf7abb712f1154155733\">Discover MetaShare<\/h2>\n\n\n\n<p>Metadata-centric document management system in Microsoft 365\/SharePoint<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Eliminates annoying gaps in standard SharePoint<\/li>\n\n\n\n<li>Ensures data in SharePoint is well structured<\/li>\n\n\n\n<li>Structures with metadata instead of storing in traditional folders<\/li>\n\n\n\n<li>Centralized and simplified administration<\/li>\n\n\n\n<li>Orchestration\/provisioning of settings<\/li>\n\n\n\n<li>Refined Enterprise search<\/li>\n<\/ul>\n\n\n\n<div class=\"wp-block-buttons is-layout-flex wp-block-buttons-is-layout-flex\">\n<div class=\"wp-block-button\"><a class=\"wp-block-button__link wp-element-button\" href=\"https:\/\/metashare.com\/en\/demo\/\">See demo<\/a><\/div>\n<\/div>\n<\/div><\/div>\n","protected":false},"excerpt":{"rendered":"<p>You can create links to documents in SharePoint based on how you want the documents to be opened (View document, Edit document or New document from template). The syntax that you have to use is:[Scheme-name]:[Command-name]|u|[Command-argument-1] &#8230; <a title=\"How do I create links to documents using Office URI Schemes?\" class=\"read-more\" href=\"https:\/\/staging-help.metashare.com\/en\/metashare\/faq\/documents\/how-do-i-create-links-to-documents-using-office-uri-schemes\/\" aria-label=\"Read more about How do I create links to documents using Office URI Schemes?\">Read more<\/a><\/p>\n","protected":false},"author":4,"featured_media":0,"parent":10721,"menu_order":7,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":{"0":"post-4163","1":"page","2":"type-page","3":"status-publish","5":"no-featured-image-padding"},"_links":{"self":[{"href":"https:\/\/staging-help.metashare.com\/en\/wp-json\/wp\/v2\/pages\/4163","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/staging-help.metashare.com\/en\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/staging-help.metashare.com\/en\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/staging-help.metashare.com\/en\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/staging-help.metashare.com\/en\/wp-json\/wp\/v2\/comments?post=4163"}],"version-history":[{"count":16,"href":"https:\/\/staging-help.metashare.com\/en\/wp-json\/wp\/v2\/pages\/4163\/revisions"}],"predecessor-version":[{"id":12315,"href":"https:\/\/staging-help.metashare.com\/en\/wp-json\/wp\/v2\/pages\/4163\/revisions\/12315"}],"up":[{"embeddable":true,"href":"https:\/\/staging-help.metashare.com\/en\/wp-json\/wp\/v2\/pages\/10721"}],"wp:attachment":[{"href":"https:\/\/staging-help.metashare.com\/en\/wp-json\/wp\/v2\/media?parent=4163"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}