msgraph-sdk-dotnet icon indicating copy to clipboard operation
msgraph-sdk-dotnet copied to clipboard

v5 DriveItem is missing instance attributes

Open olivermue opened this issue 1 year ago • 4 comments

Describe the bug According to the documentation each drive item can within a GET request return this value: @microsoft.graph.downloadUrl

Currently this property is not mapped within a DriveItem and must be extracted from the AdditionalData dictionary.

Expected behavior The DriveItem should have a corresponding property DownloadUrl.

olivermue avatar Mar 19 '23 15:03 olivermue

The driveItem type does not include this in the metadata and thus would need to do so for the property to be projected.

image

andrueastman avatar Mar 20 '23 05:03 andrueastman

@andrueastman driveItem is extended through an OData <Term> that is defined as:

<Term Name="downloadUrl" Type="Edm.String" AppliesTo="microsoft.graph.driveItem" />

It can be found in the metadata

MaximRouiller avatar Jul 24 '23 21:07 MaximRouiller

I am also seeing other missing properties in V5 which is preventing an upgrade from V4.

I have no way of upgrading this V4 code as Thumbnails is missing from DriveItem

client
    .Sites[siteId]
    .Lists[listId]
    .Items[id]
    .DriveItem
    .Thumbnails;

IDriveItemRequestBuilder has now been replaced by a mixture of generated concrete types that are missing properties I am relying on.

mrfoster avatar Sep 12 '23 17:09 mrfoster

Depends on https://github.com/microsoftgraph/msgraph-metadata/issues/560

andrueastman avatar Apr 12 '24 09:04 andrueastman