web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Get Items created in t...
Power Automate
Unanswered

Get Items created in the current month

(0) ShareShare
ReportReport
Posted on by 1,088

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
Categories:
I have the same question (0)
  • v-alzhan-msft Profile Picture
    on at

    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 Profile Picture
    on at

    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.

  • Verified answer
    yashag2255 Profile Picture
    24,769 Super User 2024 Season 1 on at

    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!

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 538 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard