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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Count the number of re...
Power Automate
Answered

Count the number of records in the sharepoint list within a day

(0) ShareShare
ReportReport
Posted on by 284

Hi, is there a way to count the number of records in the sharepoint list within a day?
I have 100 items in the list but I tried this filter query in sharepoint "Get Items", it keeps return me 99 items.
Any advise? Thanks!
issueDate ge '@{formatDateTime(utcNow(), 'yyyy-MM-ddT00:00:00Z')}' and issueDate le '@{formatDateTime(utcNow(), 'yyyy-MM-ddT23:59:59Z')}'

Categories:
  • CFernandes Profile Picture
    8,504 Most Valuable Professional on at

    @sbgoh In the Get items, you can add a Filter Query.

     

    Created ge '2020-08-28'

     

    CFernandes_1-1598601100279.png

     

    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!

     

  • sbgoh Profile Picture
    284 on at

    Hi @CFernandes, it only return 1 record for me.

  • CFernandes Profile Picture
    8,504 Most Valuable Professional on at

    @sbgoh For testing purpose, try using another another date.

     

    Another option would be to use the REST API.

     

    CFernandes_0-1598605142388.png

     

    /_api/web/lists/getbytitle('FirstNameLastName')/items?$select=ID,Created&$filter=Created%20ge%20%272020-08-28%27

     

    Try to do some Trial Error at your end.

     

    I hope you it helps you investigate further. 

     

     

     

     

     

  • sbgoh Profile Picture
    284 on at

    There is timezone issue but I am unable to solve it. My issueDate is a date time field.

  • CFernandes Profile Picture
    8,504 Most Valuable Professional on at

    @sbgoh 

     

    Set the Time Zone in SharePoint Online and the use the REST API approach that I suggested you in my previous update.

     

    1. Open the SharePoint site on which you want to change the Time Zone.
    2. On the Site Actions menu, choose Site Settings.
    3. On the Site Settings page, under Site Administration, choose Regional settings.
    4. On the Regional Settings page, select the Time Zone that you want for this site, and then choose the OK button.
  • v-alzhan-msft Profile Picture
    Microsoft Employee on at

    Hi @sbgoh ,

     

    You could refer to screenshot below to create the flow(Please leave the filter query field in the get items action blank):

    1.png

     

    The first expression in the Filter array action:

    formatDateTime(item()?['issueDate'],'yyyy-MM-dd')

     

    The second expression in the Filter array action:

    formatDateTime(utcNow(),'yyyy-MM-dd')

     

    The expression in the Compose for the number:

    length(body('Filter_array'))

     

     

     

    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.

  • sbgoh Profile Picture
    284 on at

    I think my problem is related to time zone because for that 100 records that I created in the morning, I only able to get the count of 1 if I run the flow again in the evening. I still don't have a solution yet.

  • v-alzhan-msft Profile Picture
    Microsoft Employee on at

    Hi @sbgoh ,

     

    What is your local time zone?

    You may take a try to add/sub some hours to meet the UTC time.

     

    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.

     

     

     

     

     

  • sbgoh Profile Picture
    284 on at

    Hi Alice, it is Malaysia.

  • v-alzhan-msft Profile Picture
    Microsoft Employee on at

    Hi @sbgoh ,

     

    How many hours does the local time quickly or slow than  the UTC?

     

    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.

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 445

#2
11manish Profile Picture

11manish 345 Super User 2026 Season 2

#3
M Bilal Khan Profile Picture

M Bilal Khan 300

Last 30 days Overall leaderboard