cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
markmcclure
Level: Powered On

SharePoint flow for folders created/modified for the last week

I'm trying to build a flow to send a email once a week that will show all updates that have taken place in a certain file. However when I put in a filter array, it doesn't filter out any results. Please see my formula below, and the screenshot of my flow.

 

@greaterOrEquals(formatDateTime(item()?['Modified'], 'MM/dd/yyyy'), formatDateTime(addDays(utcNow(), -7), 'MM/dd/yyyy'))

 

5 REPLIES 5
markmcclure
Level: Powered On

Re: SharePoint flow for folders created/modified for the last week

Capture.PNG

Super User
Super User

Re: SharePoint flow for folders created/modified for the last week

You likely have a formatting or syntax issue, your array logic looks fine - I have one with the following that works perfectly:

@greaterOrEquals(formatDateTime(item()?['EndDate'], 'yyyy-MM-dd'), formatDateTime(utcNow(), 'yyyy-MM-dd'))

If you could provide an expanded screenshot of your Flow and steps, and of any detailed error messages you're receiving we could likely better assist you.

You may want to also review @Pieter_Veenstra's blog posts, Microsoft Flow – Filter data in an array and Shed some light on arrays or collections in Microsoft Flow

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

markmcclure
Level: Powered On

Re: SharePoint flow for folders created/modified for the last week

Thanks @Brad_Groux , see reply above yours for the screen shot. 


v-zhos-msft
Level 10

Re: SharePoint flow for folders created/modified for the last week

Hi @markmcclure ,

It seems you want to monitor a speific file when it was updated.

For example, when the file was updated three times last week, you want get all the three version of the file.

I am afraid you can't get all the update via one flow.

In one flow, you can only get the newest version of the file, there is no way to record each version of the file.

As the pic shown, you use the trigger 'when a file is created or modified', the data source is not an array, so you can't use the 'Filter arrray' here.

Best Regards,

Community Support Team _ Zhongys

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

markmcclure
Level: Powered On

Re: SharePoint flow for folders created/modified for the last week

@v-zhos-msft Thanks. I'm not looking for 3 different versions of the file, but rather just a log of files modified or added for the week. The only data I need is File Name, Created/Modified Date and User Name. Any idea how to accomplish this with a flow? Would it be possible to create two flows, one that logs each change as it comes in to a list, and then a flow to email out that list once a week?

 

Currently we have SharePoint alerts set up on the file, which work, however the formatting of the alert email is hard to read. Trying to make it now in more of a CSV/HTML table format so it's easier to decipher, thus why I'm trying to create a flow. 

Helpful resources

Announcements
firstImage

Microsoft Business Applications Virtual Launch Event

Watch the event on demand for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 Release Wave 2 Plan

Power Platform 2019 Release Wave 2 Plan

Features releasing from October 2019 through March 2020.

thirdimage

Flow Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Flow Community Video Gallery!

Top Kudoed Authors
Users Online
Currently online: 192 members 3,402 guests
Please welcome our newest community members: