Skip to main content
Post a question

Notifications

Community site session details

Community site session details

Session Id : dHhQ133g5cPCo7OUD3t9/J

Creating Early-Bound Classes with Power Platform Tool

Michael Ghebremedin Profile Picture Michael Ghebremedin 107

If you're using early-bound classes for your plugins or custom development, there are a couple of ways to generate them. 

You can run the CrmSvcUtil.exe with PowerShell scripts or use the XrmToolBox. 

In this article, we'll cover how to generate these files using Power Platform Tool. For this example, we're using Visual Studio 2022, but you can use prior versions as well, such as Visual Studio 2019.

To create classes for your tables(entities) using Power Platform Tool:

1. Open your Power Platform Solution connected to your Dataverse environment.

2. From View, select Power Platform Explorer.


3. Expand Tables.

4. Right-click on your specific table (entity), in this scenario Contact.


5. Select Create Class for Entity.

6. Populate the following:

      a. Select your project (required).
      b. Service Context Name (optional).
      c. Filename to create (by default prepopulated with name of table).
      d. Namespace to use (required); this will default to the namespace of the project you have selected."



Let me know if you have any other questions.


This was originally posted here.

Comments

*This post is locked for comments