cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Mattw112IG
Level 8

Get Items created in the current month

I would like to generate a report of the items in a SharePoint list created in the current month.

 

So, if this is January 2020, I would like to Get Items from list with a filter query that returns only items created Jan1 - 31, 2020.

 

I was thinking something like this:

equals(formatDateTime(item()?['Created'], 'yyyy/MM'),formatDateTime(utcNow(),'yyyy/MM'))
 
That is giving me an error about first parameter needing to be a string.
 
How can I accomplish this on a filter query.
 
Thanks,
Terry
1 ACCEPTED SOLUTION

Accepted Solutions
Dual Super User
Dual Super User

Re: Get Items created in the current month

Hey @Mattw112IG 

 

You can do something like this: 

ddde.PNG

 

Expression: 

concat(utcNow('yyyy-MM'),'-01T00:00:00')

 

Hope this Helps!

 

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

View solution in original post

3 REPLIES 3
Community Support Team
Community Support Team

Re: Get Items created in the current month

Hi @Mattw112IG ,

 

I would make a test and would reply here once the flow is finished.

 

Best regards,

Alice       

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

Community Support Team
Community Support Team

Re: Get Items created in the current month

Hi @Mattw112IG ,

 

The expression in the Filter Array should as below:

@and(greater(item()?['Created'], formatDateTime(utcNow(),'yyyy-MM-01T00:00:00Z')),less(item()?['Created'], addToTime(formatDateTime(utcNow(),'yyyy-MM-01T00:00:00Z'),1,'Month')))

1.png2.png

 

 

Best regards,

Alice       

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

Dual Super User
Dual Super User

Re: Get Items created in the current month

Hey @Mattw112IG 

 

You can do something like this: 

ddde.PNG

 

Expression: 

concat(utcNow('yyyy-MM'),'-01T00:00:00')

 

Hope this Helps!

 

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

View solution in original post

Helpful resources

Announcements
firstImage

Power Platform Online Conference

Join us for the first ever Power Platform Online Conference!

firstImage

Incoming: New and improved badges!

Look out for new contribution recognition badges coming SOON!

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!

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 Solution Authors
Top Kudoed Authors
Users online (4,802)