Using the Resco Tree View PCF Component in CRM

In this blog post, we’ll show you how we integrated the Resco Tree View PCF (PowerApps Component Framework) component into a Dynamics 365 environment to make enhancements to our Sorting Hat quiz.

Before diving in, let’s quickly break down what PCF (PowerApps Component Framework) is. PCF is a powerful framework that allows you to create custom components for use in Dynamics 365 and PowerApps applications. These components are highly interactive and are commonly used to enhance the UI and user experience.

Resco’s Tree View PCF component is one such component. It’s primarily used for displaying hierarchical data in a tree-like structure, but with some creativity, you can repurpose it to display quiz questions, choices, and results in a fun and engaging way.

We used this component to create data hierarchy in CRM where each record represents a node.

The piece of code that is implemented and allows us to have a parent-child hierarchy:

{
  "parents": [
    {
      "viewId": "9b98bd93-f813-42c7-be23-788b26b67c1e",
      "property": "adv_quizid",
      "parents": [
        {
          "viewId": "9b98bd93-f813-42c7-be23-788b26b67c1e",
          "property": "adv_quizid"
        }
      ]
    }
  ],
  "child": {
    "viewId": "1B9C4C57-29BC-48E6-994D-0C9B9A47A50D",
    "property": "adv_quizid",
    "child": {
      "viewId": "1B9C4C57-29BC-48E6-994D-0C9B9A47A50D",
      "property": "adv_quizid"
    }
  },
  "recursive": "adv_quizid"
}

Leave a Reply