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 Automate - Building Flows
Answered

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')}'
I have the same question (0)
  • lbendlin Profile Picture
    8,367 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
    989 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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 560 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 347 Moderator

#3
Expiscornovus Profile Picture

Expiscornovus 262 Most Valuable Professional

Last 30 days Overall leaderboard