How to Show Notes (Annotations) on a Model-Driven App Dashboard

How to Show Notes (Annotations) on a Model-Driven App Dashboard

Model-driven apps in Power Apps allow users to create dashboards that display key data from different entities. By default, dashboards do not provide an easy way to display Notes (Annotations). However, using a combination of dashboard customization and XrmToolBox, you can modify a dashboard to include a list of Notes. This article provides a step-by-step guide to achieving this.

Step 1: Create a New Dashboard

  1. Navigate to the Maker Portal.
  2. Create a new dashboard.
  3. When adding components to the dashboard, insert a List for any entity (e.g., Accounts). The selected entity does not matter, as we will modify it later to display Notes.

Create new dashboard

Step 2: Obtain the Notes View ID

  1. In the Maker Portal, navigate to an existing View for the Notes (Annotations) entity or create a new custom view.
  2. Once the view is open, copy the View ID as it will be needed later.

Copy view guid

Step 3: Install XrmToolBox and FormXml Manager Plugin

  1. Download and install XrmToolBox from https://www.xrmtoolbox.com/.
  2. Install the FormXml Manager Plugin.
  3. Connect to your Dataverse environment where the dashboard was created.

Install FormXml Manager

Note: If you don’t have access to use XrmToolBox, you can also update this FormXml by creating a new unmanaged solution and adding in just the dashboard you created earlier. Then export and unzip the solution, you will find the FormXml within the customizations.xml file. Perform the updates as described in the next step, then re-zip all the files and reimport the solution.

Step 4: Modify the Dashboard’s XML

  1. Open FormXml Manager in XrmToolBox.
  2. Click Load Dashboards and select Dashboard in the entity list.
  3. In the FormXmls pane, find and select your custom dashboard.
  4. Click Edit FormXml to open the editor.

image

  1. Locate the control corresponding to the List component added in Step 1 (e.g., the Accounts list).
  2. Modify the XML as follows:
    • Change the label from:
      <label description="Accounts" languagecode="1033" />
      
      to:
      <label description="Notes" languagecode="1033" />
      
    • Change the target entity from:
      <TargetEntityType>account</TargetEntityType>
      
      to:
      <TargetEntityType>annotation</TargetEntityType>
      
    • Update the View ID with the one copied earlier:
      <ViewId>{e7b7272b-dcee-ef11-be21-00224804c479}</ViewId>
      
  3. Click Update and Publish the changes.

Steps to update FormXml

Step 5: Verify Changes in the Model-Driven App

  1. Return to your Model-Driven App.
  2. Open the Dashboard.
  3. The list that previously displayed Accounts should now display Notes instead.

Notes list now in dashboard

Conclusion

By following these steps, you have successfully modified a Model-Driven App Dashboard to display Notes (Annotations) using XrmToolBox. This method allows for greater customization of dashboards to meet business requirements.

Comments

Popular posts from this blog

Add User As Local Administrator On Domain Controller

How to Create SharePoint Items with Power Automate Desktop

Calling Dataverse Web API in PowerShell using Client Credentials