Documents uploaded to SharePoint using OneDrive/Sync ignored by Power Automate

I had a chat with Paul Culmsee about Microsoft Flow missing triggers when uploading documents using OneDrive Sync.

Setup Sync

I created a document library and setup Sync.

Uploading documents using SharePoint

I then uploaded a document to this library using SharePoint and I copied some documents locally on my PC so that the Sync client would pick up these files and put them into SharePoint.

All of these files are now in my SharePoint library. Note that the Date modified date for the documents is different? Files uploaded to SharePoint have a modification date of today (19/09/2018) and the document that I copied locally and Synced to SharePoint kept their original date. This is very important!

Flows (not) triggered by my documents

Now I’m going to look at Microsoft Flow. I created the flow shown below before I uploaded the documents.

When looking at the run history in Flow I’m only finding back run history for the documents that I uploaded to SharePoint.

Why?

At first I was thinking that Flow is ignoring document and that Flow is broken here. Having had a bit more of a detailed look into this however I’m not so sure. A lot of the Flow technology depending on web hooks and one of the things webhooks does is us a last change token. This is to ensure that you only pickup changes since a certain date. More information on this can be found in  SharePoint webhooks sample reference implementation.

I currently don’t really have a solution for this other than make sure that you upload document to SharePoint rather than synchronising document to SharePoint. When I do have any better solution then I will update this post.

Share
Pieter Veenstra

Business Applications and Office Apps & Services Microsoft MVP working as a Microsoft Productivity Principal Consultant at HybrIT Services. You can contact me using contact@veenstra.me.uk.

View Comments

Recent Posts

Create new group alert using Power Automate

Do you want to know when a new group has been created with for example…

3 days ago

Delegation Warnings in Power Apps

We have all seen them, Delegation Warnings, but what is delegation and how do you…

3 days ago

1 Top tip: PowerPlatformLearn.com and master the Power Platform within no time

It can be difficult to get started with the Power Platform, blogs help, training helps,…

1 week ago

Compare 2 Excel files using Power Automate

This is such a common scenario. You receive Excel files on a regular basis and…

2 weeks ago

Rename SharePoint folders using Power Automate in 2 easy steps

Have you ever wanted to rename SharePoint folders with Power Automate? REST API call to…

3 weeks ago

Read dates from Excel with Power Automate

To read dates from Excel files can be tricky, as Excel only give you the…

4 weeks ago
%%footer%%