I created a tutorial using Contoso data for those who are looking to get more experience building Power Apps and using them with Dynamics 365 Finance and Supply Chain Management. After following the below steps, you will have created a Power App that queries and lists the products in Dynamics using the out of the box connector. We will also add a search capability to query product names based on the provided keyword.

It’s important to note that connecting to Dynamics 365 with a Power App needs a premium license. If you run into any trouble walking through these steps, you can get a 30 day trial by clicking “Try free” on this pricing page. This trial will then need to be applied to the same tenant that is associated with your Dynamics environment and where you are building your Power App from.

Creating the Power App

  1. Navigate to make.powerapps.com.
  2. Click the Create tab.
  3. Click Canvas app from blank under the Start from blank section.

    The start from blank option is displayed when creating a canvas app.
  4. Type in a name under App name, such as AllProductsDemo. Select Phone for format and click the Create button.

    Screenshot showing where to name the app and select the phone format.

  5. Your new app workspace will launch. If you get the below prompt, click Skip.

    The welcome splash screen is shown. Click skip.
  6. Click the + symbol to open the insert screen where we can begin adding controls to our app.

    The left menu bar is displayed indicating to click the plus symbol which is the insert menu.

  7. Click Vertical gallery and drag it onto the bottom area of your app. We will assume the control name for the Gallery is Gallery1.

    The insert menu is displayed and indicating to drag a vertical gallery control onto the app screen.

  8. A Select a data source prompt will appear. Type in Fin & Ops and search for the Fin & Ops Apps (Dynamics 365) connector. Click to select the connector.

    Screenshot of the select a data source screen with 'Fin & Ops' typed in.

  9. Click the Fin & Ops Apps connection again on the next screen. Make sure your Dynamics environment is running or it will fail to connect.

    A screenshot showing the next screen after searching for the Fin & ops connector. Click the connector again.
  10. Under Choose a table, type AllProducts and click the checkbox next to AllProducts. Click Connect.

    The choose a table screen is shown with 'AllProducts' typed in and selected. These are the tables displayed after the connection to dynamics is made.

  11. Under your Gallery properties, select Title and subtitle for the Layout property.

    Gallery1 properties are shown indicating where the layout property is to change in step 11.

  12. Click Edit next to Fields in the Gallery1 properties. Select Product name for the Subtitle field and Product number for the Title field. The selection changes are real-time, and you can close out of the Data selection screen.

    Screenshot of the Gallery1 properties. Fields is highlighted to click and the selected fields are shown what to change them to from Step 12..

  13. Data should now populate the Gallery control with our selected fields and layout. (Hint: if data isn’t populated, try running your app by pressing F5 or clicking the Preview app button in the top right section of your screen. You can close out of the preview mode by clicking the X icon in the upper right corner of the screen.

    A preview of the gallery1 control populated with product data.

  14. Next, we will learn how to add a keyword search for the product name and repopulate the results in our Gallery. From the insert screen, drag a Text input and Button control into your app.

    We will assume the name of these controls are TextInput1 and Button1.

    The screenshot shows dragging a text box control and button control onto the top area of the app screen.

  15. Click the TextInput1 control and remove the value in the Default property so it is blank. This will prevent our app from searching for products using the default value of “Text input" in later steps.

  16. Click the Button1 control. Set the Text property to Search Products
    In the On Select event, add the following formula and replace the existing 'false' value that is present:

    Set(varSearchKeyword, TextInput1.Text)

    The varSearchKeyword variable will be updated on the button click with our search keyword to use against the product names.

    Showing the search products button click, that the on select event is selected, and where to enter the formula.

  17. Click the Gallery1 control (not just the first record in the control). In the Items event, add the following formula and replace the ‘AllProducts’ value that is present:

        // Load 20 product records by default
        // or else query and filter using our keyword for product name
        Filter(AllProducts, varSearchKeyword in 'Product name')

    Gallery1 will now populate product records from our connection based on the keyword in the varSearchKeyword variable. If varSearchKeyword is blank (such as when the app is first loaded), then it will load the first 20 product records. Otherwise, varSearchKeyword is updated with the contents of TextInput1 when Button1 is clicked, and that keyword will be used to filter the results.

    Showing the Gallery1 control being clicked, that the items event is selected, and where to enter the formula.
  18. Press F5 or click the Preview app button and we can now query the products in Dynamics 365 Finance and Supply Chain Management with our keyword.

    Searching using “Laptop” as a keyword:

    A screenshot showing the app in action by searching and displaying the laptop results for products.

Thanks for reading! If you found this blog helpful, please connect with me on LinkedIn for future blog updates. I would love to hear how building your Power App went and how you plan to use Power Apps with Dynamics.