You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using the latest version of SDK to upload a file to users one drive. However I can't find items() method on DriveItemRequestBuilder in order to access a specific item.
I have noticed that its working when I separate the retrieval of driveId and the upload request.
var driveId = graphClient.users().byUserId("user-id").drive().get().getId();
var uploadSession = graphClient.drives().byDriveId(driveId).items().byDriveItemId("root:/test.docx").createUploadSession().post(request);
You just can't put the both in one statement. May be it help's someone.
Dear community,
I am using the latest version of SDK to upload a file to users one drive. However I can't find
items()
method onDriveItemRequestBuilder
in order to access a specific item.This is the code from the documentation:
I am using
ClientSecretCredential
and trying to access an item like this:graphClient.users().byUserId("user-id").drives().byDriveId("drive-id").items() ...
but items() is missing ...
Is
withUrl
the new way to access a specific item? Please provide an example of how to do this.The text was updated successfully, but these errors were encountered: