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

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Get Items Timezone Query
Power Automate
Unanswered

Get Items Timezone Query

(0) ShareShare
ReportReport
Posted on by 205
Hi all, I would like to send an email at 7am SGT (UTC+8) containing details of SP items created the day before. The timezone of my SP site is also as SGT. Can I check if the below query would work correctly to fetch the entries?
 
Created lt '@{addhours(utcNow('yyyy-MM-dd'),8)}' and Created ge '@{adddays(addhours(utcNow(),8),-1,'yyyy-MM-dd')}'
Categories:
I have the same question (0)
  • lbendlin Profile Picture
    8,474 Super User 2025 Season 2 on at
    Get Items Timezone Query
    Please define what you mean by "the day before" - in SGT or in UTC?
  • ccqn Profile Picture
    205 on at
    Get Items Timezone Query
    The day before in SGT
  • Verified answer
    Mark Nanneman Profile Picture
    991 Super User 2025 Season 2 on at
    Get Items Timezone Query
    Why even bother with the timezone conversion?  Is there a reason you can't just pull items created more than 24 hours ago?

    i.e. Created ge @{addHours(utcNow(),-24)}

    If you need to do the time zone thing, you can do it like this with actions in power automate:


    Then reference the "Converted Time Zone" property from the "Convert Time Zone" action in your filter query:


    If you're comfortable with formulas, you can skip the actions and do it all in a formula like:
    addHours(convertTimeZone(utcNow(),'UTC','Central Standard Time'),-24)


    Another method to accomplish processes like this is to filter on a column that you update for each item that's included in your report or email.  It could be a date field, a boolean or a choice set--whatever you want!  Just filter on the items that haven't been updated (i.e. "sentInEmail ne true" or "dateEmail eq null") then just use any existing For Each loop to update the appropriate filter columns on the SP items, or add a new For Each loop to the end of the flow to do it.

    Hope that makes sense or helps!

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 462 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 456 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard