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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / How to stop the Button...
Power Apps
Answered

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

(0) ShareShare
ReportReport
Posted on by 121

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:
I have the same question (0)
  • Verified answer
    jatcube Profile Picture
    508 on at

    @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).

  • Nisha_Innola Profile Picture
    121 on at

    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 at

    @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
    121 on at

    @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 at

    @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
    121 on at

    @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..

  • jatcube Profile Picture
    508 on at

    @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
    121 on at

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

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 325 Most Valuable Professional

#2
11manish Profile Picture

11manish 165

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 88 Super User 2026 Season 1

Last 30 days Overall leaderboard