Skip to content

How to get special app folder with the new SDK? #1977

Description

@NLLAPPS

I am pulling my hair out trying to upload to special app folder https://docs.microsoft.com/en-us/onedrive/developer/rest-api/api/drive_get_specialfolder?view=odsp-graph-online

On 5 series, I was simply doing

val specialAppFolder = "approot" val uploadSession = graphServiceClient .me() .drive() .special(specialAppFolder) .itemWithPath(uploadDestination.removePrefix("/")) // removePrefix because OrganiserConverter.fromConfig will return /path/.. .createUploadSession(.....)

On 6+ I cannot figure-out how to get hold of specialAppFolder in order to createUploadSession().

Could someone with a better understanding point me to the right direction please?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions