Use CrmServiceClient constructors to connect to Microsoft Dataverse
Use the various constructors to create an instance of the CrmServiceClient class to connect to Dataverse. More information: CrmServiceClient Constructors
The connection string constructor is the most easy, convenient way to get an instance of the CrmServiceClient class. More information: Use connection strings in XRM tooling to connect to Dataverse
Note
Consider using the new ServiceClient
class that brings in enhancements over the CrmServiceClient
class, such as .NET cross-platform application support, MSAL authentication, ILogger support, and performance benefits. More information: Transition client applications to Dataverse ServiceClient
See also
ServiceClient Constructors
Use XRM Tooling Windows PowerShell Cmdlets to connect to Dataverse