--- title: "Adding a dox42 button via Power Apps" slug: "adding-the-dox42-pop-up-button-via-power-apps" tags: ["d365CECRM", "task", "CE V5.0"] updated: 2025-07-02T07:33:02Z published: 2025-07-02T07:33:02Z canonical: "help.dox42.com/adding-the-dox42-pop-up-button-via-power-apps" --- > ## Documentation Index > Fetch the complete documentation index at: https://help.dox42.com/llms.txt > Use this file to discover all available pages before exploring further. # Adding a dox42 button via Power Apps You can add dox42 buttons to your entity forms and grids with Power Apps. This is our recommended approach, if you use D365 CE. In the example below you will add a separate button for each document template you want to call. ### **Steps** Open your Power Apps solution. 1. Go to [make.powerapps.com](http://make.powerapps.com) 2. Go to **Apps**. 3. Select the app, where you want to integrate a new dox42 button into. In our example, the Sales Hub. 4. Select the **… > Edit** ![Power Apps interface displaying various applications and options for user management.](https://cdn.document360.io/3acc69da-1de2-431d-95a6-08ae83717b4a/Images/Documentation/image-1746012033698.png) **Apps** page 5. Decide on which entity you would like to display your dox42 button on and select **…** > **Edit in command bar**” ![User interface of Dynamics 365 showing work list and editing options.](https://cdn.document360.io/3acc69da-1de2-431d-95a6-08ae83717b4a/Images/Documentation/image-1746012103749.png) The **Edit command bar** pop-up opens. 6. Select whether you would like to place your dox42 button on the entity form (main form) or on a grid or subgrid and select the **Edit** button. 7. Select the **New command** button. 8. In the **Label** text field enter the button label. Example:`dox42`. 9. From the **Icon** menu select the **Use web resource** entry. 10. From the **Library** menu select the desired icon or add a new one via **Add web resource**. ![Command settings for dox42 with label, ID, and icon details displayed.](https://cdn.document360.io/3acc69da-1de2-431d-95a6-08ae83717b4a/Images/Documentation/D365_PowerApps_Add_command_details1.png) Name and label details in the command form 11. From the **Visibility** menu select the **Show on condition from formula** entry. 12. Go to the **Action** section to configure the button action**:** 1. From the **Action** menu select the **Run JavaScript** entry. 2. Select the **Add library** button. The **Add JavaScript library** pop-up opens. 3. Search for `dox42_clientlib.js`. 4. Select the **dox42_clientlib.js** search result and select the **Add** button. 5. In the text field below enter the function name. For a single button: `generateFile`. 6. Select the **Add parameter** button. 7. From the menu select the **String Parameter** entry. 8. Enter the name of the dox42 pop-up web resource you want to integrate. Example: `YourtemplateConfigName`. 9. From the menu select the **SelectedControlSelectedItemIds** entry. ![JavaScript command setup with parameters for generating a file using a library.](https://cdn.document360.io/3acc69da-1de2-431d-95a6-08ae83717b4a/Images/Documentation/image-20250423-084931.png) Action details in the command form 13. Select the **Save and Publish** button. > [!NOTE] > Note > > See [https://docs.microsoft.com/en-us/powerapps/maker/model-driven-apps/use-command-designer#actions](https://docs.microsoft.com/en-us/powerapps/maker/model-driven-apps/use-command-designer#actions) for further details. ## Result The button is now added to your D365 CE form. ![Dynamics 365 interface showing account details for Contoso Ltd., including revenue and employee count.](https://cdn.document360.io/3acc69da-1de2-431d-95a6-08ae83717b4a/Images/Documentation/image-20250423-085237.png) ##