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 Automate / Trigger when a OneDriv...
Power Automate
Unanswered

Trigger when a OneDrive For Business file is uploaded

(2) ShareShare
ReportReport
Posted on by 10

Hi, 

Uploaded my documents in OneDrive for Business. Will like to trigger a flow when a new document is uploaded. Is this possible?

 

Tried "when file is created" or "when file is modified", but both does not work for uploading documents. 

Categories:
I have the same question (0)
  • vecerpa Profile Picture
    786 on at

    Hello,

     

    I have same problem. I use when new file is created.

    I tried to use it with notification as action and it worked when new file was added, but when I edit it and add approval nothing happen. It is not triggering at all. No message, no error, nothing.

    Is it working at all?

    Thank you for answer.

    P.

  • vincentakatoh Profile Picture
    10 on at

    @vecerpa

    No, did not work for me. I think trigger for "File upload" is not available now.

     

    Only works new MS office online file is created/modified in OneDrive for Business. Was hoping someone in forum can provide alternative, maybe using some advance option. 

     

    rgds, Vincent

  • v-xida-msft Profile Picture
    Microsoft Employee on at

    Hi @vincentakatoh,

     

    If you want to trigger a flow when a new document is uploaded in your OneDrive for Business folder, you could consider take a try to use the "When a file is created" trigger as the trigger of your flow. 

     

    I have made a test on my side and the flow works well. My flow's configuration as below:7.JPG

    The flow works successfully as below when I upload a file into my OneDrive for Business folder:8.JPG

    The flow may spend almost 15 seconds to be fired. The flow would have its own trigger interval, there is a limit in Run duration of single flow run, the max Run duration is 30 days. More details about the limits of Run duration and retention of single flow run, please check the following article:

    Run duration and retention

     

    In addition, the trigger would have its own limits. You could consider search for corresponding connectors within the following article and check if there is a limit related to the trigger that you used:

    https://docs.microsoft.com/en-us/connectors/

     

    Best regards,

    Kris

  • vecerpa Profile Picture
    786 on at

    Hi @v-xida-msft

     

    This Flow is working well.

    But I tried to use approval flow, that is also available from templates. This Flow is not working. It look like this:OfBFlow1.PNG

     

    OfBFlow2.PNG

     

     

    But this Flow is not fired up, even the file is added to folder. Same scenario I used for notification as shown in your message and it worked fine.

    Is there a chance to navigate me to find where can be issue?

     

    Thank you.

    Pavel

  • Vintaurus Profile Picture
    4 on at

    I have the same problem with OneDrive on Mac. If I add the files directly to OneDrive folder, they cannot be triggered. If I add same files to OneDrive on Internet, so they can be triggered successfully. So I see the OneDrive-App doesn't work with Microsoft Flow at the moment. I used the existing Microsoft Flow "Copy files between OneDrive and SharePoint".

  • vecerpa Profile Picture
    786 on at

    Hi @Vintaurus,

     

    I had this problem like two days after I firstly created this Flow. Few days after it start working and it keep working. So I hope this will fix itself for you soon.

    P.

  • Vintaurus Profile Picture
    4 on at

    @vecerpa Yeah, you are right. Now, it works correctly. But today I got new version for OneDrive - Mac. 

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 60 Super User 2026 Season 1

#2
Haque Profile Picture

Haque 54

#3
Expiscornovus Profile Picture

Expiscornovus 47 Most Valuable Professional

Last 30 days Overall leaderboard