0

It seems that the Microsoft Graph search functionality for driveItem doesn't return a @mcirosoft.graph.downloadUrl

Using the Graph Explorer, I tried to fetch the following and the downloadUrl isn't present in the response:

/v1.0/sites/{site-id}/drive/root/search(q='')?$select=id,name,file,folder,size,lastModifiedDateTime,@microsoft.graph.downloadUrl

In the documentation, the DriveItem should include the @microsoft.graph.downloadUrl on the response.

Marc LaFleur
  • 31,987
  • 4
  • 37
  • 63

1 Answers1

1

The select query parameter applies only to properties, not instance attributes. Instance attributes are properties with special behaviors.

In your query, id,name,file,folder,size,lastModifiedDateTime are valid properties but @microsoft.graph.downloadUrl is an instance attribute.

In order to obtain the downloadUrl, you will need to execute a second call to /v1.0/sites/{site-id}/drive/items{driveItemId}.

Marc LaFleur
  • 31,987
  • 4
  • 37
  • 63
taurus05
  • 2,491
  • 15
  • 28