Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Using Flows
Answered

Flow not triggered after new files are created OneDrive for Business

(0) ShareShare
ReportReport
Posted on by 6

Hi,

 

I have created a basic flow when the following parts:

- When a file is created (One Drive business)

- Send an email V2 (outlook 365)

 

The file part has a recurrence of 5 minutes. Now when I copy 10 files simultaneously into the One Drive folder, after an hour waiting I'm still not receiving an email, while the Test worked within 10 minutes of waiting. Any ideas what's happening and I'm not seeing the email as expected? Does it have to do with the 10 files at once?

I have a Office 356 Standard plan by the way.

Regards,


p.s.
Code view:  When a file is created.

 

{
 "inputs": {
 "host": {
 "connectionName": "shared_onedriveforbusiness",
 "operationId": "OnNewFileV2",
 "apiId": "/providers/Microsoft.PowerApps/apis/shared_onedriveforbusiness"
 },
 "parameters": {
 "folderId": "lef out due to privacy",
 "includeSubfolders": true,
 "inferContentType": true
 },
 "authentication": "@parameters('$authentication')"
 },
 "recurrence": {
 "interval": 5,
 "frequency": "Minute"
 },
 "metadata": {
 "left out due to pricavy"
 }
}

 

 

Code view for Send an email V2

 

{
 "inputs": {
 "host": {
 "connectionName": "shared_office365",
 "operationId": "SendEmailV2",
 "apiId": "/providers/Microsoft.PowerApps/apis/shared_office365"
 },
 "parameters": {
 "emailMessage/To": "left out due to privacy",
 "emailMessage/Subject": "left out due to privacy",
 "emailMessage/Body": "left out due to privacy",
 "emailMessage/Cc": "left out due to privacy",
 "emailMessage/Attachments": [
 {
 "Name": "@triggerOutputs()?['headers/x-ms-file-name-encoded']",
 "ContentBytes": "@triggerOutputs()?['body']"
 }
 ]
 },
 "authentication": "@parameters('$authentication')"
 }
}

 

 

  • mequan Profile Picture
    on at
    Re: Flow not triggered after new files are created OneDrive for Business

    Hi,

    Please log in https://admin.powerplatform.microsoft.com/ and click on help+support.

     

    Thanks

  • morrowyn Profile Picture
    6 on at
    Re: Flow not triggered after new files are created OneDrive for Business

    Hi,

    Where do I open up a case for this?


    Regards,

  • Verified answer
    mequan Profile Picture
    on at
    Re: Flow not triggered after new files are created OneDrive for Business

    This would be know limitation of onedrive API. It sometimes will not mark onedrive is modified when we copy file in Onedrive from local PC. If you want to know more please open case to check what blocks you update onedrive folder status.

    Thanks

  • morrowyn Profile Picture
    6 on at
    Re: Flow not triggered after new files are created OneDrive for Business

    Hi,

    That seems to work. When I copy just one file from windows explorer it seems to work as well. So what's the difference here?

    Regards,

  • mequan Profile Picture
    on at
    Re: Flow not triggered after new files are created OneDrive for Business

    Hi @morrowyn ,

    May you try to copy file to onedrive folder from Browser , not from local PC?

    Thanks

  • morrowyn Profile Picture
    6 on at
    Re: Flow not triggered after new files are created OneDrive for Business

    Hi,

    I copy the files from a folder outside of OneDrive into a folder inside OneDrive. So I'm kind of stuck now using this. I'm using the OneDrive folder through Windows Explorer by the way.

     

    Regards,

  • mequan Profile Picture
    on at
    Re: Flow not triggered after new files are created OneDrive for Business

    Hi @morrowyn ï¼Œ

     

    Actually it would be OneDrive API limitation. When we copy file to the other folder in onedrive, it will not be identified as modified in OneDrive and so it will not trigger flow. But if you copy file from the folder out of OneDrive, it would be triggered.

     

    Thanks

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,679 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,015 Most Valuable Professional

Leaderboard

Featured topics

Restore a deleted flow