Skip to main content
Notice removed Authoritative reference needed by Emmanuel Villegas
Bounty Ended with Mike's answer chosen by Emmanuel Villegas
Tweeted twitter.com/StackSharePoint/status/777893436275974144
Notice added Authoritative reference needed by Emmanuel Villegas
Bounty Started worth 50 reputation by Emmanuel Villegas
edited title
Link

How to open an Office file in the client software programatically in SharePoint Online?

I have a Sharepoint hosted app that retreive documents from a library and I want that the name of the file has a link to open dethe document directly to the client Office app. The SP hosted app areis made with angular 2 and I am working with REST.

The endpoint i'm using for get the files is:

_spPageContextInfo.siteAbsoluteUrl + "/_api/lists/getbytitle('Documentos')/items?$select=FileRef,Title&$filter=ContentType eq '" + cttypeName + "'";

Is there a property in the file that has that url?

I have a Sharepoint hosted app that retreive documents from a library and I want that the name of the file has a link to open de document directly to the client Office app. The SP hosted app are made with angular 2 and I am working with REST.

Is there a property in the file that has that url?

I have a Sharepoint hosted app that retreive documents from a library and I want that the name of the file has a link to open the document directly to the client Office app. The SP hosted app is made with angular 2 and I am working with REST.

The endpoint i'm using for get the files is:

_spPageContextInfo.siteAbsoluteUrl + "/_api/lists/getbytitle('Documentos')/items?$select=FileRef,Title&$filter=ContentType eq '" + cttypeName + "'";

Is there a property in the file that has that url?

Source Link

How to open an Office file in the client software programatically?

I have a Sharepoint hosted app that retreive documents from a library and I want that the name of the file has a link to open de document directly to the client Office app. The SP hosted app are made with angular 2 and I am working with REST.

Is there a property in the file that has that url?