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

Feature Request: Get path in parentReference from search result #1234

Closed
sven5 opened this issue Mar 4, 2020 · 6 comments
Closed

Feature Request: Get path in parentReference from search result #1234

sven5 opened this issue Mar 4, 2020 · 6 comments

Comments

@sven5
Copy link

sven5 commented Mar 4, 2020

We're using OneDrive for Business.
When searching for files in Graph API, the parentReference does not include the path string. Is there any reason for this limitation?
Example:
GET https://graph.microsoft.com/v1.0/me/drive/root/search(q='finance')?select=name,parentReference

returns

 {
            "@odata.type": "#microsoft.graph.driveItem",
            "name": "CR-227 Product Overview.pptx",
            "parentReference": {
                "driveId": "b!-RIj2DuyvEyV1T4NlOaMHk8XkS_I8MdFlUCq1BlcjgmhRfAj3-Z8RY2VpuvV_tpd",
                "driveType": "business",
                "id": "01BYE5RZ6TAJHXA5GMWZB2HDLD7SNEXFFU"
            }
        },

Another way would be to $expand the parentReference, but I had no luck.
https://graph.microsoft.com/v1.0/me/drive/root/search(q='coffee')$expand=parentReference
produces a 400 BadRequest

@ghost ghost added the Needs: Triage 🔍 Needs initial triage assessment label Mar 4, 2020
@ghost
Copy link

ghost commented Mar 4, 2020

Thank you for your contribution to OneDrive API Docs. We will be triaging your incoming issue as soon as possible.

@chackman
Copy link
Contributor

Thanks for your feedback, we're looking into feasibility of this request.

@chackman chackman removed the Needs: Triage 🔍 Needs initial triage assessment label May 1, 2020
@chackman
Copy link
Contributor

chackman commented May 1, 2020

We've placed this item on our backlog. We would recommend that you also consider going to UserVoice as we consider that feedback in prioritizing future work. Thanks!

@vikasprabhakar
Copy link

@chackman , is the new "path" field added in "parentReference"?
I'm still not getting the "path" of parentReference in search api.

@pvn04
Copy link

pvn04 commented Jul 1, 2021

@chackman still i am facing the exact problem which @sven5 mentioned a year ago. Not getting the path of parentReference in search api. Is this still in your backlog?

@patrick-rodgers
Copy link
Contributor

As part of a repository clean up effort we are closing older issues. If this issue remains, please: open a new issue, reference this issue, and provide any additional details that may help in resolution. Thank you for your understanding as we work to improve our responsiveness.

@OneDrive OneDrive locked as resolved and limited conversation to collaborators Feb 17, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants