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 / Is there a way to cont...
Power Apps
Unanswered

Is there a way to control the visibility of the Flow run options in the command bar?

(0) ShareShare
ReportReport
Posted on by
I'm trying to edit the flow run option in the command bar to make it so one of the flows under the Runs option is visible or invisible depending on the value of a choice field. So for example here, I want to make the flow right below "Run" visible or invisible depending on a choice field. Is this even possible? 


I just want to confirm if this is even doable. Since when I go to edit the Command bar and select Flow, it says it's read-only and I can't do anything with it. If this is not doable, I can use a custom button instead. Thank you.
I have the same question (0)
  • Ravi-Prajapati Profile Picture
    416 Moderator on at

    Option 1: Use Command Bar Customization (Recommended)

    You can use the Ribbon Workbench in XrmToolBox to conditionally show or hide buttons.

    Steps:

    1. Install XrmToolBox and add the Ribbon Workbench plugin.

    2. Open your solution in Ribbon Workbench.

    3. Find the Command Button for the specific Flow under "Run."

    4. Attach custom Enable Rules using JavaScript.

    Sample JavaScript Rule

     
    javascript
    function showFlowButton(primaryControl) {
    var formContext = primaryControl;
    var choiceFieldValue = formContext.getAttribute("your_choice_field_name").getValue();

    // Return true to show the flow button; false to hide it
    return choiceFieldValue === 100000000; // Adjust based on your choice values
    }
    1. Add the function to the Enable Rule for the Flow button.

    Option 2: Use a Custom Canvas App and Navigate from Model-Driven App

    If you're open to using a Canvas App as a gateway for controlling which Flows are visible:

    • Filter visible flows dynamically based on conditions from the model-driven data.

    Option 3: Manage Conditions Directly in Power Automate

    If the flow itself should only run under certain conditions, you could handle that logic inside Power Automate by:

    1. Checking the value of the Choice field inside the flow.
    2. Returning a message if the flow shouldn't proceed.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 842

#2
Valantis Profile Picture

Valantis 563

#3
Haque Profile Picture

Haque 402

Last 30 days Overall leaderboard