cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
momohamed
Level: Power Up

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 Team
Community Support Team

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
Gristy
Level 10

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 Team
Community Support Team

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
thirdimage

Power Automate Community User Group Member Badge

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

firstImage

Incoming: New and improved badges!

We've given our badges an overhaul and also added some brand new ones!

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 Power Automate Community Video Gallery!

Top Kudoed Authors (Last 30 Days)
Users online (5,019)