Cannot use the $select when querying ToDo tasks (error or/and ignored)

JS_T 0 Reputation points

When making simple calls like this

GET me/todo/lists/'<key>'/tasks

We're getting as expected the tasks. BUT when we want to follow best practices, we cannot use the $select like we typically should. If I provide it, it will either be ignored or failed depending on which fields I'm using. So if I ironically follow the returned from a response without a $select where it tells me to use this:

GET me/todo/lists('<key>')/tasks?$select=body,bodyLastModifiedDateTime

It will simply fail fail and return me an error like

"error": {
        "code": "invalidRequest",
        "message": "Invalid request",
        "innerError": {
            "code": "RequestBroker--ParseUri",
            "date": "2023-10-14T13:56:36",
            "request-id": "1d5cbb14-966d-42f7-ae72-734e706eff36",
            "client-request-id": "50820971-5cd7-fa43-55bb-274832502daa"

And if I remove "bodyLastModifiedDateTime" from my query and leave only "body", it will return ALL the fields.

So my question is: Are $select working for only some msgraph APIs or its just that there's an issue with the TODO api?

thank you!


Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,798 questions
0 comments No comments
{count} votes