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 / Cannvas App - Flow is ...
Power Apps
Unanswered

Cannvas App - Flow is execute twice when click a button

(0) ShareShare
ReportReport
Posted on by 2

Hi,

 

I have a canvas app that support offline mode with a timer run a flow to sync data every 3 mins.

When user clicks a button, if Connection.Connected, we will call the flow. Otherwise we will store in the offline data and wait for the timer to be triggered.

However, sometimes we received same request (we check from Flow history) but execute twice (just 2 seconds apart). We already differentiate offline sync request and online request (to make sure the root cause is not the Timer)

This issue not happen on my DEV environment but on my Client's environment and devices, user faces the issue randomly (even though they cleared cache)

 

Can anyone suggest me how to investigate further or solution on how to resolve the issue ?

Categories:
I have the same question (0)
  • v-xiaochen-msft Profile Picture
    Microsoft Employee on at

    Hi @phuong_zinnove ,

     

    Is it possible for the user to press the Button twice in a short period of time?

    I suggest you set a click interval.

    For example:

    When the user clicks the button for the first time, set the interval to 3 seconds.

    During these three seconds, the user cannot click the button again.

     

    Best Regards,
    Wearsky
    If my post helps, then please consider Accept it as the solution to help others. Thanks.

  • phuong_zinnove Profile Picture
    2 on at

    Hi @v-xiaochen-msft ,

     

    I don't think it possible because I set "Auto Disable On Select" = true for the button. 

    Also, I cannot find out where to set the interval for the button

     

  • v-xiaochen-msft Profile Picture
    Microsoft Employee on at

    Hi @phuong_zinnove ,

     

    Because this is indeed a strange behavior, so I can only give you this suggestion...

    You could try to add a timer control with a duration of 3 seconds.

    Timer control is used to change the displaymode of the button control.

     

    Best Regards,

    Wearsky

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 July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 392 Most Valuable Professional

#2
11manish Profile Picture

11manish 136 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 109 Super User 2026 Season 2

Last 30 days Overall leaderboard