OneDrive / samples

Contains samples, scenarios, and guidance for integrating with OneDrive and SharePoint drives, drive items, and files.
MIT License
58 stars 59 forks source link

Sharepoint Entry Strings Issues #53

Closed nicolasiscoding closed 1 year ago

nicolasiscoding commented 1 year ago

Describe the bug I am trying to specify an entrypoint into Sharepoint but I am unable to figure out how to format the strings. Let's say I have this path in Sharepoint (excuse my highlighting and anonymization skills)

For this directory: image

How should my Sharepoint Entry look in the options? I've tried a few things including some of what I used below (Note, this is my options but I am programmatically setting it) image image

This is what I am seeing on my end and it works inconsistently with other paths: image

For my application's user experience, the idea is for someone to set this path in the UI and I add it to the options for the initial entry point.

Thank you in advance!

patrick-rodgers commented 1 year ago

I have added a sample for you showing how to address a folder path. Note you might need to review the permissions the app is consented to include additional scopes depending on the site(s) you are targeting. Delegated Sites.Read.All or Files.Read.All may be required.

nicolasiscoding commented 1 year ago

Thank you @patrick-rodgers !!

patrick-rodgers commented 1 year ago

Closing this issue as answered. If you have additional questions or we did not answer your question, please open a new issue, ref this issue, and provide any additional details available. Thank you!