0

I have been able to use the Graph API to query the list of items in a Sharepoint Item

https://graph.microsoft.com/v1.0/sites/root/lists/d7689e2b-941a-4cd3-bb24-55cddee54294/items

However I would like to retrieve a specific property (LinkingUri) of a particular Item.

If I append the filter clause

https://graph.microsoft.com/v1.0/sites/root/lists/d7689e2b-941a-4cd3-bb24-55cddee54294/items?$select=id,LinkingUri

it gives me the error Could not find a property named 'LinkingUri' on type 'microsoft.graph.listItem' even though this is a Sharepoint list item

I am aware that the same can be done in Sharepoint REST API using the below https://abc.sharepoint.com/_api/web/getfilebyserverrelativeurl('/Shared%20Documents/Somedoc.docx')/LinkingUri

However I would like to achieve the same using Graph API

0

Unfortunately Microsoft Graph ListItem resource does not expose File.LinkingUrl property. The closest available property it corresponds to is absolute file url, which you could retrieve via one of the following endpoints:

via ListItem.webUrl property:

https://graph.microsoft.com/v1.0/sites/{site-id}/lists/{list-id}/items/{item-id}/webUrl

or via ListItem.fields EncodedAbsUrl property:

https://graph.microsoft.com/v1.0/sites/{site-id}/lists/{list-id}/items/{item-id}?expand=fields(select=EncodedAbsUrl)
-1

Try adding:

?expand=fields(select=Column1,Column2)
  • 1
    Expand only exposes related entities. It does not work in this case – Codecrasher99 Sep 12 '18 at 8:13

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.