cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
BrownMango69
Level: Powered On

Using a button for a repetitive procedures causing issues?

Hi

I become accustomed to putting repetitive code in buttons and calling them by the select command. I am now wondering if this is causing me issues and wondered if anyone else has seen the same. For example - I have 2 buttons:

a button called "butCount" to build a collection based on a filter and store the count in a variable called X. 

a button called "butSearch" that assigns some variables to values, does a select("butCount") and builds another collection and then calls a navigate command to another screen.

I have very rare/occasional issues where it seems like the "butCount" button hasn't finished building it's collection and storing a count in variable X and it's already nagivating to the next screen. It appears like "butCount" is starting another thread/process and sometimes it finishes before navigating to the next screen and sometimes it doesn't. Has anyone experienced this type of issue? I know the best way around is to embed all the code in "butSearch" but just wondering if someone can shed some light for me on this.

 

1 ACCEPTED SOLUTION

Accepted Solutions
Dual Super User
Dual Super User

Re: Using a button for a repetitive procedures causing issues?

Hi @BrownMango69 

 

Yes having repetitive code does have its benefits

but having Select(BtnCode) and then within this call another button does cause timing issues

Best would be to add all code to the same button

 

Regards,

Reza Dorrani

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

View solution in original post

1 REPLY 1
Dual Super User
Dual Super User

Re: Using a button for a repetitive procedures causing issues?

Hi @BrownMango69 

 

Yes having repetitive code does have its benefits

but having Select(BtnCode) and then within this call another button does cause timing issues

Best would be to add all code to the same button

 

Regards,

Reza Dorrani

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

View solution in original post

Helpful resources

Announcements
thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

Top Kudoed Authors
Users Online
Currently online: 322 members 6,294 guests
Please welcome our newest community members: