cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
momohamed
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
v-bacao-msft
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
Gristy
Resident Rockstar
Resident Rockstar

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.

v-bacao-msft
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
MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

secondImage

Are Your Ready?

Test your skills now with the Cloud Skill Challenge.

Top Solution Authors
Users online (72,816)