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 : olhbu6dCKiX6ABdq97W3V4
Power Apps - Building Power Apps
Answered

How to stop the Button clicked every 1 minutes after 2 hours of performing its operation automatically?

Like (0) ShareShare
ReportReport
Posted on 6 Sep 2022 19:16:13 by 99

Hi all,

I have designed a PowerApps where the user s location is tracked every one minute once the button is clicked  using Timer Control automatically (With Timer Duration is 60000(1 minute interval) .My question is I need to stop the button click after 2 hours of tracking automatically?? Is there any way to pause the button after 2 hours of tracking  from the time when the button is clicked?

 

I have a Timer

With Start as True

Repeat as True

On Timer End - Select(Button)

Duration -60000

 

Can anyone please help me with it??

Categories:
  • Nisha_Innola Profile Picture
    99 on 08 Sep 2022 at 12:23:52
    Re: How to stop the Button clicked every 1 minutes after 2 hours of performing its operation automatically?

    @jatcube ..Sure..Thank you once again...

  • jatcube Profile Picture
    508 on 08 Sep 2022 at 12:17:57
    Re: How to stop the Button clicked every 1 minutes after 2 hours of performing its operation automatically?

    @Nisha_Innola glad to hear it worked. Please don’t forget to mark your post answered to help others find the solution easier.

  • Nisha_Innola Profile Picture
    99 on 08 Sep 2022 at 11:21:54
    Re: How to stop the Button clicked every 1 minutes after 2 hours of performing its operation automatically?

    @jatcube ....You re Brilliant...It worked perfectly...Thank you soo much for your Time and Reply...Really this was a big help for me...Thank you once again.....Now the App works perfectly..

  • Verified answer
    jatcube Profile Picture
    508 on 07 Sep 2022 at 15:52:51
    Re: How to stop the Button clicked every 1 minutes after 2 hours of performing its operation automatically?

    @Nisha_Innola I just did a test and it works for me. please double check that the value of the variable in the repeat property of timer1 says true when your timer1 runs. You can go to View - Variables.

     

    If still no luck, let me know how you are setting the variable to true and the other properties you set on timer1 and timer2.

  • Nisha_Innola Profile Picture
    99 on 07 Sep 2022 at 14:05:42
    Re: How to stop the Button clicked every 1 minutes after 2 hours of performing its operation automatically?

    @jatcube ...I have worked as you said. Changed varResetTimer to true in OnTimerStart Property of Timer1 ..Still the issue resides. The timer1 just tracked only once and stopped it s function. Can you suggest me a solution for this Please?

  • Verified answer
    jatcube Profile Picture
    508 on 07 Sep 2022 at 13:30:53
    Re: How to stop the Button clicked every 1 minutes after 2 hours of performing its operation automatically?

    @Nisha_Innola have you set the value of varResetTimer to true? maybe on Timer1 OnTimerStart property? a variable will be blank unless defined. not sure why it doesn't throw an error in Timer1, but I think this is the issue. Let me know.

    If you found this response useful, give it a thumbs up and don’t forget to mark your post answered to help others find the solution easier.

  • Nisha_Innola Profile Picture
    99 on 07 Sep 2022 at 13:03:06
    Re: How to stop the Button clicked every 1 minutes after 2 hours of performing its operation automatically?

    Hi @jatcube ..

    Thank you for your reply...Your solution worked. But when Timer1 s Repeat mode is changed to varResetTimer, the previous operation of tracking the user s location every 1 minute with Timer 1 is not working. Is there any solution apart form this for this problem??I want the Timer 1 s repeat mode to be true to track every 1 minute...Could you please help me with this?

    I have a Timer

    With Start as True

    Repeat as True

    On Timer End - Select(Button)

    Duration -60000

  • Verified answer
    jatcube Profile Picture
    508 on 06 Sep 2022 at 19:45:35
    Re: How to stop the Button clicked every 1 minutes after 2 hours of performing its operation automatically?

    @Nisha_Innola there are a few ways you can achieve what you're after, but one option could be setting your Timer1's Repeat property to a variable, e.g. varResetTimer and then having another Timer2 set to run for your desired time after your Timer1 is started and set Timer2's OnTimerEnd property to Set(varResetTimer, false).

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

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

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!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 791 Most Valuable Professional

#2
MS.Ragavendar Profile Picture

MS.Ragavendar 410 Super User 2025 Season 2

#3
mmbr1606 Profile Picture

mmbr1606 275 Super User 2025 Season 2

Loading complete