> ## Documentation Index
> Fetch the complete documentation index at: https://docs.powerux.app/llms.txt
> Use this file to discover all available pages before exploring further.

# Command Bar

> Command bar flows are designed to prepare a script generated from the maker configurations to be added by the maker to the command they designed using the command bar designer in PowerApps or using any community tools such as RibbonWorkBench.

<Warning>
  The current version only supports ribbon for Form command bards
</Warning>

## Creating a command bar flow

1. From Flows click on New <img src="https://mintcdn.com/amplifyit/wwNjZHVXpMCVqWjR/images/ribbonnew.webp?fit=max&auto=format&n=wwNjZHVXpMCVqWjR&q=85&s=30dfb41015298acbee6fdd32ef852cb7" alt="" width="1486" height="664" data-path="images/ribbonnew.webp" />

2. Choose the “Command bar (Ribbon)” option <img src="https://mintcdn.com/amplifyit/wwNjZHVXpMCVqWjR/images/ribbonnewwindow.webp?fit=max&auto=format&n=wwNjZHVXpMCVqWjR&q=85&s=309c4a9406ba24b7ed962ddbe2cb25b0" alt="" width="2011" height="801" data-path="images/ribbonnewwindow.webp" />

3. Set a name for the flow and then choose a table and a form for the command bar you want to extend. <img src="https://mintcdn.com/amplifyit/wwNjZHVXpMCVqWjR/images/ribbonnewdatafill.webp?fit=max&auto=format&n=wwNjZHVXpMCVqWjR&q=85&s=4d0022603e070e26fdf5142b7aba1f32" alt="" width="2005" height="867" data-path="images/ribbonnewdatafill.webp" />

4. Click on Create

## Edit your flow

1. Click on the Edit button <img src="https://mintcdn.com/amplifyit/wwNjZHVXpMCVqWjR/images/ribbonedit.webp?fit=max&auto=format&n=wwNjZHVXpMCVqWjR&q=85&s=5ec2205e4d8f7c9656f576504b136271" alt="" width="2048" height="1128" data-path="images/ribbonedit.webp" />

2. Configure your flow logic

3. Publish your Flow

## Use your flow in a Command

1. Copy the details of your published flow <img src="https://mintcdn.com/amplifyit/wwNjZHVXpMCVqWjR/images/ribbonnotification.webp?fit=max&auto=format&n=wwNjZHVXpMCVqWjR&q=85&s=06557b98a0d494d911449c4252ce7e7c" alt="" width="2048" height="1103" data-path="images/ribbonnotification.webp" />
   You will get two values:
   A. File name
   B. Function name

2. Open the Command Bar designer and click Edit Command bar for the entity you want to extend&#x20;

3. Choose Main form <img src="https://mintcdn.com/amplifyit/wwNjZHVXpMCVqWjR/images/ribbonmainform.webp?fit=max&auto=format&n=wwNjZHVXpMCVqWjR&q=85&s=ce5263a763ffa92050d0d01136cddead" alt="" width="1730" height="1085" data-path="images/ribbonmainform.webp" />

4. Create a new Command and choose type as **JavaScript** <img src="https://mintcdn.com/amplifyit/wwNjZHVXpMCVqWjR/images/ribboncomponentlibrary.webp?fit=max&auto=format&n=wwNjZHVXpMCVqWjR&q=85&s=2defd29c31eaf784a95940e515bc4796" alt="" width="1189" height="724" data-path="images/ribboncomponentlibrary.webp" />

5. Fill in the details you copied from the published flow <img src="https://mintcdn.com/amplifyit/wwNjZHVXpMCVqWjR/images/ribbonoob.webp?fit=max&auto=format&n=wwNjZHVXpMCVqWjR&q=85&s=ef16d7462d290e9a7e3b3288c0e47c90" alt="" width="2048" height="1163" data-path="images/ribbonoob.webp" />**Library**: Copy it from the `library name` of the published flow
   **Function**: Copy it from the `function` of the published flow
   **Parameter**: pass the `Primary Control` as the first parameter

6. Save & Publish

Observe the result after clicking on the button <img src="https://mintcdn.com/amplifyit/wwNjZHVXpMCVqWjR/images/ribbonobserve.webp?fit=max&auto=format&n=wwNjZHVXpMCVqWjR&q=85&s=71a8e7d80228b0d9be1b687721cf6596" alt="" width="2048" height="668" data-path="images/ribbonobserve.webp" />
