cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
julianhoewel_95
Helper II
Helper II

Creating files in OneDrive for Flow users

Hey guys,

 

in my project our technicians are filling out some data in PowerApps which is then transfered to Flow, that works fine. 
In that flow process there will be a created some files which are then uploaded to OneDrive, now the problem: 
Why is the process only working when I am launching the flow? I thought that as soon as I give rights to the PowerApps users they are allowed to create files in the OneDrive folder (from the flow owners account - my account), but unfortunately that doesnt work... Is it because of the dynamic folder path? 

I already tried it with SharePoint, which works, but I have the problem that I am converting a .html document to a JPG file, and that action is - as far as I know - not defined in the SharePoint actions.

Thanks for any help!

Greetings

1 ACCEPTED SOLUTION

Accepted Solutions

Hi @manuelstgomes ,

 

yes im sure I used "share".
I found out that whenever a flow is triggered by PowerApps, that flow is using the data of the PowerApps User, e.g. it also generates an email from the user's account and not the one of the flow owner. 
Intuitively I thought that flow woudn't work like this, but obviously thats the case when you connect it to PowerApps...

Thanks for your help!

Cheers
Julian

View solution in original post

5 REPLIES 5
manuelstgomes
Community Champion
Community Champion

Hi @julianhoewel_95 

 

It depends a little on how you share the Flow. If, in your flow, grant permissions for people to run it (making it a team Flow), then it should work because you're granting permissions to run the Flow on your connections. If you copy or create a template the connections will be set up by each person pointing to their OneDrive.

 

Dynamic paths aren't the issue. You can use them without an issue.

 

If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Cheers
Manuel

 

 

Hi @manuelstgomes ,

 

thanks for your response, but it leads me to another question:
if I want to share my flow with other users, I can only classify the users as owners, not as run-only-users... Is that the reason why the files are created in their specific OneDrive?

If I understand you right, does that mean that I have configured my flow wrong when I created it? 

 

Cheers

Julian

Hi @julianhoewel_95 

 

Yes, indeed they are only Owners so they can change the flow. But the connection used is yours so it should be stored on your OneDrive. 

 

For example this Flow.

Screenshot 2020-01-14 at 09.36.31.png

 

If I share it with someone the connection is still mine and Microsoft even warns that:

"Everyone listed as an owner will have access to all these connections and will only be able to use them in this flow."

 

I find it strange that the files are stored in their own OneDrive. Are you sure you used the "Share" and not the "Send Copy"?

 

If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Cheers
Manuel

Hi @manuelstgomes ,

 

yes im sure I used "share".
I found out that whenever a flow is triggered by PowerApps, that flow is using the data of the PowerApps User, e.g. it also generates an email from the user's account and not the one of the flow owner. 
Intuitively I thought that flow woudn't work like this, but obviously thats the case when you connect it to PowerApps...

Thanks for your help!

Cheers
Julian

Hi, 

Related to this I want a file to be created in flow users One drive. I have done the button trigger and working well when myself running the flow from the power bi button. But when other users are running, they don't have file created in their one drive or mine. I am not getting any error message as well. What could be the reason. I shared the link of power bi dashboard and given run as users access. Secondly, i can't see the run history of other users in my power automate flow page.

 

 

 

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

New Ideas Forum MPA.jpg

A new place to submit your Ideas for Power Automate

Announcing a new way to share your feedback with the Power Automate Team.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

MPA Licensing.jpg

Ask your licensing questions at the Power Automate AMA!

Join Priya Kodukula and the licensing team, super users and MVPs to find answers to your questions on Power Automate licensing.

Users online (2,420)