Study FAQ
How do I choose between Xrm.WebApi, the Dataverse Web API and the Dataverse SDKs?
Also asked as 2
- Which Dataverse client fits hosted JavaScript, an external .NET app or a Python service?
- When should a Dataverse application use a hosted client API, direct HTTP or an SDK?
Answer
Choose the Dataverse client based on the execution host and the programming model. For JavaScript inside a model-driven app, start with the host's Xrm.WebApi. For an independent app or a portable integration that wants HTTP and OData v4 directly, use the Dataverse Web API. For an external .NET application built around typed requests and responses, use the SDK for .NET with ServiceClient. A Python application can use the Dataverse SDK for Python with an Azure Identity credential or manage Web API calls directly. Xrm.WebApi · Dataverse Web API · SDK for .NET · Dataverse SDK for Python
The Web API and SDK express operations on the same Dataverse service. In the Web API, normal row operations use POST, GET, PATCH and DELETE. Check the documented Action or Function for named operations instead of assuming an SDK request name maps directly to a URL. The legacy 2011 SOAP endpoint deprecation concerns that transport. Updated SDK assemblies continue to provide the Organization service programming model. Web API operations · Organization service overview
Inside a Dataverse plug-in, use the supported in-process SDK and the Organization service provided by execution context. Verify the host, environment, principal and a permitted operation before extending any external integration, and check that your selected SDK version supports the operations and runtime you need. Write a Dataverse plug-in
Full explanation
AB-400: Dataverse API Clients and OAuth Authentication
Study guide · AB-400
Read the full explanation