Dev set up Dataverse with API


1. Microsoft Power Apps Developer Plan (Free)

This plan is intended for individual developers to learn, test, and develop apps. With the Power Apps Developer Plan, you can create a personal environment that allows access to Dynamics 365 features, including Dataverse, which is the underlying data platform of Dynamics 365.

 

Steps to Set Up:

  1. Go to the Power Apps Developer Plan page: Power Apps Developer Plan.
  1. Click Start free and sign in with your Microsoft account (if you don't have one, create it).
  2. Once logged in, you'll be directed to the Power Apps portal. You'll get access to the following:
    • Power Apps (for building low-code apps)
    • Dataverse (the database platform)
    • Power Automate (workflow automation)
    • Limited access to Dynamics 365 functionalities, including custom entities and forms

While this plan offers the building blocks of Dynamics 365, it is not a full Dynamics 365 application but can be a good starting point for building apps on the platform for free.

 

 

1.3 Configuring the SDK in Program.cs

You need to configure the ServiceClient for Dataverse in the Program.cs file. This can be done by using connection strings for Dataverse from your configuration.

 

builder.Services.AddSingleton<ServiceClient>(sp =>

{

    var config = sp.GetRequiredService<IConfiguration>();

    var connectionString = config.GetConnectionString("DataverseConnection");

    return new ServiceClient(connectionString);

});

 

 

In your appsettings.json:

 

{

  "ConnectionStrings": {

    "DataverseConnection": "AuthType=ClientSecret;Url=https://your-dataverse-url.crm.dynamics.com;ClientId=your-client-id;ClientSecret=your-client-secret;TenantId=your-tenant-id;"

  }

}


No files yet, migration hasn't completed yet!