One drive File picker in a web app

Oreoluwa Spurt 0 Reputation points
2023-04-10T21:37:34.7333333+00:00

Hello, I'm developing a feature that involves users opening their one drive and pick files from both their personal, and company drives. I followed the guide on the documentation page but i can't seem to get it to work.

My question is what is the base url supposed to be - all the documentation show a static link i.e it was coded in and can only be used for one user or a small group of users. Secondly i get an invalid error, when I use said (my own) base url . I have no idea what could be causing this Screenshot 2023-04-10 at 22.34.16

Thanks any help would be appreciated.

Microsoft 365 and Office | OneDrive | For business | Windows
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. user1 0 Reputation points
    2023-04-10T22:03:53.2733333+00:00

    Hello Oreoluwa, It sounds like you're experiencing two separate issues. Let's tackle them one at a time. Firstly, regarding the base URL, it's difficult to provide an answer without more context. Can you provide the documentation page you're referring to, or any more information on what you're trying to accomplish? Depending on the API or SDK you're using, the base URL could be different. It's possible that the static link you're seeing in the documentation is just an example and not the actual base URL you should be using. Secondly, regarding the invalid error, can you provide any more details about the error message you're seeing? It's possible that the error message could provide some clues as to what might be going wrong. Additionally, have you checked to make sure that you're using the correct authentication credentials and that you have the necessary permissions to access the files in both the personal and company drives? The more information you can provide, the easier it will be to help you troubleshoot the issue.


  2. Emi Zhang-MSFT 30,046 Reputation points Microsoft External Staff
    2023-04-11T01:58:38.8066667+00:00

    Hi @Oreoluwa Salami,

    I suggest you post this issue to OneDrive for Developer forum:

    https://techcommunity.microsoft.com/t5/onedrive-developer/bd-p/OneDriveDeveloper

    The reason why we recommend posting appropriately is you will get the most qualified pool of respondents, and other partners who read the forums regularly can either share their knowledge or learn from your interaction with us. Thank you for your understanding.


    If the response is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


Your answer

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