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

Monthly Function

Hello Experts 

i have list in sharepoint into this list i have date column i want make flow about this date if this column equal this month get this row by fillter query and send email 

how i can fillter by month in flow 

 

thanks 

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Support
Community Support

Re: Monthly Function

 

Hi @momohamed ,

 

You could get the first day of next month and the first day of the current month by using the following expression:

addDays(concat(add(int(formatDateTime(utcNow(), 'yyyy')),if(equals(formatDateTime(utcNow(), 'MM'), '12'), 1, 0) ),'-',add(int(formatDateTime(utcNow(), 'MM')),if(equals(formatDateTime(utcNow(), 'MM'), '12'), -11, 1) ),'-01T00:00:00Z'),0,'yyyy-MM-dd')
startOfMonth(utcNow(),'yyyy-MM-dd')

Then configure Filter Query to filter items.

68.PNG

Hope it helps.

 

Best Regards,

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

View solution in original post

2 REPLIES 2
Highlighted
Super User II
Super User II

Re: Monthly Function

Hi,

a good template is the reminder one you can start from the document library click Flow then pick remind me and then your column.

 

That querys for > or < a number of days. You could instead calculate the first and last day of the current month and replace that in the query.

Highlighted
Community Support
Community Support

Re: Monthly Function

 

Hi @momohamed ,

 

You could get the first day of next month and the first day of the current month by using the following expression:

addDays(concat(add(int(formatDateTime(utcNow(), 'yyyy')),if(equals(formatDateTime(utcNow(), 'MM'), '12'), 1, 0) ),'-',add(int(formatDateTime(utcNow(), 'MM')),if(equals(formatDateTime(utcNow(), 'MM'), '12'), -11, 1) ),'-01T00:00:00Z'),0,'yyyy-MM-dd')
startOfMonth(utcNow(),'yyyy-MM-dd')

Then configure Filter Query to filter items.

68.PNG

Hope it helps.

 

Best Regards,

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

View solution in original post

Helpful resources

Announcements
firstImage

Super User Program Update

Three Super User rank tiers have been launched!

firstImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

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

Top Solution Authors
Users online (5,274)