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 III
Super User III

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
MPA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

R2 (Green) 768 x 460px.png

Microsoft Dynamics 365 & Power Platform User Professionals

DynamicsCon is a FREE, 4 half-day virtual learning experience for 11,000+ Microsoft Business Application users and professionals.

Top Solution Authors
Users online (2,020)