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

View solution in original post

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
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.

Users online (2,577)