Replies: 1 comment
-
For any one coming across this the select also needs a $ https://graph.microsoft.com/v1.0/sites/{site-id}/lists/{list-id}/items?$expand=fields($select=Id) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
When I use the expand query parameter to get the fields in a list query from the sdk it uses %expand which does not support the select query.
example
https://graph.microsoft.com/v1.0/sites/{site-id}/lists/{list-id}/items?$expand=fields(select=Id)
fails with
{"error":{"code":"BadRequest","message":"Parsing OData Select and Expand failed: Term '(select=Id)' is not valid in a $select or $expand expression.","innerError":{"date":"2024-01-14T01:25:38","request-id":"3df2ef20-1495-4f1e-99e5-60517fa2dc77","client-request-id":"3df2ef20-1495-4f1e-99e5-60517fa2dc77"}}}
however
https://graph.microsoft.com/v1.0/sites/{site-id}/lists/{list-id}/items?expand=fields(select=Id) does work
Beta Was this translation helpful? Give feedback.
All reactions