cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
morrowyn
New Member

Flow not triggered after new files are created OneDrive for Business

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')"
    }
}

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
mequan
Community Support
Community Support

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

View solution in original post

7 REPLIES 7
mequan
Community Support
Community Support

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

morrowyn
New Member

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
Community Support
Community Support

Hi @morrowyn ,

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

Thanks

morrowyn
New Member

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
Community Support
Community Support

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
New Member

Hi,

Where do I open up a case for this?


Regards,

mequan
Community Support
Community Support

Hi,

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

 

Thanks

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.

Super User 2 - 2022 Congratulations 768x460.png

Welcome Super Users

The Super User program for 2022- Season 2 has kicked off!

Users online (4,262)