cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Witham
Frequent Visitor

Create File in Sharepoint when file created in OneDrive for Business

Hi 

I'm working on a flow that uses PowerApps as a trigger that creates a pdf and uploads it to the users Onedrive. I then want to create a file in SharePoint from this Onedrive folder and finally delete the file from the Onedrive account. My problem is the flow stalls at "When a file is created" in Onedrive for Business.

Capture.PNG

 
4 REPLIES 4
abm
Super User
Super User

Hi @Witham 

 

Leave it running and see the final error. Also check the file size?

 

Thanks



Did I answer your question? Mark my post as a solution!

If you liked my response, please consider giving it a thumbs up


Proud to be a Flownaut!

Learn more from my blogPower Automate Video Tutorials
Pstork1
Dual Super User III
Dual Super User III

Using two different triggers in the same flow only works in some very specialized circumstances.  I would suggest breaking everything out starting with When a file is created in OneDrive to a separate flow using that trigger.



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

Hi

Thanks for the reply but my issue is that the file will be created in the users own OneDrive and as such I don't have access to this directly.

The file is created in their One Drive then converted to a pdf and the file created. 

Is there perhaps a way I can allow them access to the folder on my One Drive to created the file??

Pstork1
Dual Super User III
Dual Super User III

As long as you share the folder with R/W privileges it shouldn't be an issue.  But you'll have to be careful that its using your OneDrive.  It depends on the trigger you use, which will determine the security context.  Either way, the OneDrive trigger won't work in the middle of the flow. 



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

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Top Solution Authors
Users online (3,428)