Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'DeltaRequestBuilder.DeltaRequestBuilderGetQueryParameters' does not contain a definition for 'Token' #2841

Open
kesane-msft opened this issue Feb 24, 2025 · 5 comments
Labels
status:waiting-for-triage An issue that is yet to be reviewed or assigned type:bug A broken experience

Comments

@kesane-msft
Copy link

Describe the bug

I am trying to query changed SharePoint sites via the Microsoft.Graph 5.70 SDK, using the delta tokens. I was trying using the code snippets listed here - https://learn.microsoft.com/en-us/graph/api/site-delta?view=graph-rest-1.0&tabs=csharp#request-1

However, the compiler is giving the following error -
'DeltaRequestBuilder.DeltaRequestBuilderGetQueryParameters' does not contain a definition for 'Token' and no accessible extension method 'Token' accepting a first argument of type 'DeltaRequestBuilder.DeltaRequestBuilderGetQueryParameters' could be found (are you missing a using directive or an assembly reference?)

Expected behavior

The code should compile and delta query should go through successfully.

How to reproduce

Visual Studio, C#, Microsoft.Graph nuget v5.70.
Code snippet from here - https://learn.microsoft.com/en-us/graph/api/site-delta?view=graph-rest-1.0&tabs=csharp#request-1

SDK Version

5.70

Latest version known to work for scenario above?

No response

Known Workarounds

No response

Debug output

Click to expand log ```
</details>


### Configuration

- OS: Windows
- Architecture: x64

### Other information

_No response_
@kesane-msft kesane-msft added status:waiting-for-triage An issue that is yet to be reviewed or assigned type:bug A broken experience labels Feb 24, 2025
@MartinM85
Copy link
Contributor

Does the v1.0/sites/delta endpoint work for you? Even if I'm SharePoint Administrator and granted permissions like Sites.Read.All, Sites.Manage.All and Sites.FullControl.All, the response is still 403.

@kesane-msft
Copy link
Author

Interesting. Through graph explorer, I am hitting 403 as you mentioned. I am pretty sure it was working last Friday.

@MartinM85
Copy link
Contributor

Interesting. Through graph explorer, I am hitting 403 as you mentioned. I am pretty sure it was working last Friday.

I'm also sure it worked recently 🙂

@MartinM85
Copy link
Contributor

MartinM85 commented Feb 25, 2025

@kesane-msft
As a workaround, you can use the WithUrl method

var response = await client.Sites.Delta.WithUrl($"https://graph.microsoft.com/v1.0/sites/delta?token={token}").GetAsDeltaGetResponseAsync();

@kesane-msft
Copy link
Author

kesane-msft commented Feb 26, 2025

@MartinM85 - thanks for the suggestion, that worked and unblocked me for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status:waiting-for-triage An issue that is yet to be reviewed or assigned type:bug A broken experience
Projects
None yet
Development

No branches or pull requests

2 participants