Exercise - Install and use developer tools

Completed

In this exercise, you'll install some of the developer tools from NuGet.

Important

Use a test environment with Microsoft Dataverse provisioned. If you do not have one you can sign up for the community plan.

Task 1: Install developer tools

In this task, you'll use a Power Platform CLI to install tools.

  1. Launch Command Prompt.

  2. Run the command below to install the Configuration Manager Tool.

    pac tool cmt

  3. The Configuration Manager Tool should install and launch. Close the Configuration Manager Tool.

  4. Run the command below to install the Package Deployer Tool.

    pac tool pd

  5. The Package deployer tool should install and launch. Close the Package Deployer Tool.

  6. Run the command below to install the Plugin Registration Tool.

    pac tool prt

  7. The Plugin Registration should install and launch. Don't close the Plugin Registration Tool.

Task 2: Explore a registered plug-in with the plug-in registration tool

  1. Select Create New Connection

  2. Check Display list of available organizations.

    Screenshot showing create new connection and make sure to show the list of available organizations.

  3. Select Login and sign in with your Dataverse environment credentials when prompted.

  4. On the list of organizations (environments) pick your environment and select Login again.

  5. You'll see a list of system plug-ins, if you do this on an environment with custom plug-ins you would see them in the list as well. The (Assembly) are .NET DLLs that implement the plug-ins.

    Screenshot showing list of plugins in the tool.

  6. Locate Microsoft.CDS.DataLakeDataProvider.Plugins and expand it.

    Screenshot showing locating a specific plugin.

  7. Each of the child items is implemented in the assembly. Expand one of the items to see the step registrations for that individual plug-in.

    Screenshot highlighting a step from a plugin.

  8. Step registration connects the plug-in as an event handler to the event. In the above example, this is handling a create on the insightsstorevirtualentity table.

  9. Double-click on the step to see the step configuration details including what message and entity, it's registered on, the pipeline stage when the plugin will be invoked, whether execution is synchronous or asynchronous, etc.

    Screenshot showing the properties for a step.

When you create your own custom plug-in, you'll use this tool to load the assembly and register the steps for the events that you want to handle.