Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Answered

Obtain information at a specified time interval

(0) ShareShare
ReportReport
Posted on by 17

Hello. Thanks for reading me.

Iam making a query to an API where I get information.
Performing the query, I get the creation date field of a file in this format.

yyyy-MM-dd hh:mm:ss : 2021-11-30 04:17:11

 

I need to make queries every 1 hour where I can fetch everything created from the query time until one hour before, that is from 2021-11:30 04:17:11 to 21-11-30 05:17:11 .

 

I already get the current time and the time 1 hour ago. I don't know how to put the condition to say if the creation date is in the range of 21-11-30 05:17:17:11 and 21-11-30 04:17:11.

Thanks

  • Verified answer
    v-LilyW-msft Profile Picture
    on at
    Re: Obtain information at a specified time interval

    Hi @d4n13l74 

    Has your problem been solved?

    You can use Condition to determine whether the creation time is within a certain interval.

    In order to facilitate the test, I added Compose action and rename the action and put the creation time, the current time and the time 1 hour ago in the Compose action. And make sure their format is consistent.

    vLilyWmsft_0-1638772083484.png

    vLilyWmsft_3-1638773884361.png

    Result:

    vLilyWmsft_2-1638772293663.png

    Hope the content above may help you.

    Best Regards

     

  • VictorIvanidze Profile Picture
    12,505 on at
    Re: Obtain information at a specified time interval

    https://powerusers.microsoft.com/t5/Building-Flows/Compare-dates/td-p/54802

  • d4n13l74 Profile Picture
    17 on at
    Re: Obtain information at a specified time interval

    Thank you @VictorIvanidze . What do you mean by Convert all time data/values to ticks?

  • VictorIvanidze Profile Picture
    12,505 on at
    Re: Obtain information at a specified time interval

    Convert all data/time values to ticks and compare them as numbers.

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

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 1

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 1