cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Mattw112IG
Impactful Individual
Impactful Individual

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
yashag2255
Dual Super User II
Dual Super User II

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
v-alzhan-msft
Community Support
Community Support

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.

v-alzhan-msft
Community Support
Community Support

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.

yashag2255
Dual Super User II
Dual Super User II

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
MPA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Users online (2,392)