web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Cannot add connection ...
Power Apps
Answered

Cannot add connection for the API: shared_onedriveforbusiness.

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

I have created a PowerApp which generates a CSV file for adding tasks on Azure DevOps. It takes user-input information to the PowerApps Collection, and then sends it to a Flow which converts it to a JSON and then creates a CSV file which is saved locally through "Create a file OneDrive Business". It works flawlessly for me, but when I had a user test it they got the error:

 

Error OneDrive API.png

 

I have shared the PowerApp with the user, so I'm a bit stumped as why they are being denied access. I read that Flows triggered by PowerApps aren't required (and can't) have a list of allowed Run-Only users.

Categories:
I have the same question (0)
  • zmansuri Profile Picture
    6,048 Super User 2024 Season 1 on at

    Instead of using OneDriveForBusiness try personal one drive. Same trigger and all. I had the same issue a while back. Couldn't understand why it was happening but, solved it with personal one drive. 

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    When I try to connect to the normal OneDrive "create file" in Flow I get the Error: "You can't sign up here with a work or school email address. Use a personal email, such as Gmail or Yahoo!, or get a new Outlook email."

     

    This App is to be shared with others that use work emails, so won't it also have that error for them. Or can I just create a throwaway MS account to attach to the Flow?

  • zmansuri Profile Picture
    6,048 Super User 2024 Season 1 on at

    Well. it's not a good idea to have Company flows on personal account. But, OneDrive for business sometimes create problems. 

    Your first error is related to connection. It is like you are not authorized to use that OneDrive For Business account. In my company there were some organizational policy that were hindering the flow so i used my personal one drive. It worked for me. Sorry i couldn't be of any more help

  • Verified answer
    Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Right, I tried re-adding the OneDrive for Business connection and now the errors are gone. So thanks a bunch for the help still!

  • zmansuri Profile Picture
    6,048 Super User 2024 Season 1 on at

    You can select "Accept as Solution". It will help others.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 325 Most Valuable Professional

#2
11manish Profile Picture

11manish 165

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 88 Super User 2026 Season 1

Last 30 days Overall leaderboard