Share via

Is the select parameter working properly?

Jennifer 40 Reputation points
2025-03-20T18:20:46.7366667+00:00

Hi all, I've been trying to use the select parameter when requesting recent files, but the response does not include any of the selected properties. It is working correctly when retrieving a list of shared files. However, when I try to do the same for recent files, I just get empty values (see attached image). Screenshot 2025-03-20 at 11.15.06 AM

Is this working as intended? Does the recent files endpoint not support the select parameter?

Microsoft Security | Microsoft Graph
0 comments No comments

Answer accepted by question author

CarlZhao-MSFT 46,456 Reputation points
2025-03-21T09:44:02.5966667+00:00

Hi @Jennifer

It seems that this endpoint does not yet support the $select query parameter. More precisely, it only works for certain properties such as id and remoteItem, while for other properties, it always returns an empty value.

As a solution, I suggest iterating through the current file set and selecting specific properties to return.

Hope this helps.

If the reply is helpful, please click Accept Answer and kindly upvote it. If you have additional questions about this answer, please click Comment.

Was this answer helpful?

1 person found this answer helpful.
0 comments No comments

1 additional answer

Sort by: Most helpful
  1. NishithaBanala-MSFT 5 Reputation points Microsoft External Staff
    2025-03-21T07:03:34.2766667+00:00

    Hello Jennifer,

    Thank you for reaching out to Microsoft Support!!

    The behavior you are describing suggests that the recent files endpoint may not support the select parameter in the same way as the shared files endpoint. This could be due to differences in how these endpoints are implemented or the data they return.

    I’ve been working with the Recent Files endpoint in GET /me/drive/recent, specifically using the select parameter to retrieve certain properties. While this works perfectly fine for other endpoints like Shared Files, I’ve noticed that when using it with the Recent Files endpoint, the response doesn’t include the selected properties and instead returns empty values.

    User's image

    You can submit this feature request using this support link, which will be monitored by Microsoft team and make the enhancements to Graph API.

    Hope this helps.

    If the answer is helpful, please click Accept Answer and kindly upvote it. If you have any further questions about this answer, please click Comment.

    Was this answer helpful?

    1 person found this answer helpful.
    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.