cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
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
Community Support
Community Support

 

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

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.

Community Support
Community Support

 

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

Check out the on demand sessions that are available now!

MPA Community Blog

Power Automate Community Blog

Check out the community blog page where you can find valuable learning material from community and product team members!

Users online (5,376)