Skip to content

Missing Option to Provide Token in Delta Query on SharePoint Files #948

@mymro

Description

@mymro

Currently there appears to be no way to add the token query parameter to a sharepoint driveitem delta request.

site.drive.root.delta

my current workaround is to provide a custom query param like so:

query = site.drive.root.delta
query.query_options.custom = {
    "$a=b&token" : "2025-03-10T20%3A00%3A00Z" #a=b to ignore bug in library where all params are prepended with $
}

I have to add "a=b&" to the name of my query param, as the QueryOptions class prepends every query parameter with a $:

def to_url(self):
    """Convert query options to url"""
    return "&".join(["$%s=%s" % (key, value) for (key, value) in self])

Please add the functionality to add this query parameter or point me in the right direction. Maybe I am using the wrong code to build this request.

Thanks in advance.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions