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

Power Platform Community Conference

Find your favorite faces from the community presenting at the Power Platform Community Conference!

FirstImage

Microsoft Ignite 2020

Check out the announcement of Power Platform content at Microsoft Ignite!

firstImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Users online (12,372)