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

Obtain information at a specified time interval

Like (0) ShareShare
ReportReport
Posted on 30 Nov 2021 16:07:07 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

I have the same question (0)
  • Verified answer
    v-LilyW-msft Profile Picture
    on 06 Dec 2021 at 06:58:45
    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,601 on 01 Dec 2021 at 13:28:53
    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 01 Dec 2021 at 11:49:57
    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,601 on 01 Dec 2021 at 08:28:06
    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

Responsible AI policies

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

Telen Wang – Community Spotlight

We are honored to recognize Telen Wang as our August 2025 Community…

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Tomac Profile Picture

Tomac 786 Moderator

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 724 Super User 2025 Season 2

#3
stampcoin Profile Picture

stampcoin 290 Super User 2025 Season 2

Last 30 days Overall leaderboard