# How do I choose between Xrm.WebApi, the Dataverse Web API and the Dataverse SDKs?

Exam: AB-400 — Power Platform Developer Associate
Knowledge domain: Extend Microsoft Power Platform (35–40%)
Updated: 2026-11-25T06:47:22.449398+00:00
HTML: https://learningpathx.com/faq/AB-400/ab400-dataverse-web-api-sdk-client-choice.html

## Also asked as

- 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?

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](https://learn.microsoft.com/en-us/power-apps/developer/model-driven-apps/clientapi/reference/xrm-webapi) · [Dataverse Web API](https://learn.microsoft.com/en-us/power-apps/developer/data-platform/webapi/overview) · [SDK for .NET](https://learn.microsoft.com/en-us/power-apps/developer/data-platform/org-service/overview) · [Dataverse SDK for Python](https://learn.microsoft.com/en-us/power-apps/developer/data-platform/sdk-python/overview)

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](https://learn.microsoft.com/en-us/power-apps/developer/data-platform/webapi/overview) · [Organization service overview](https://learn.microsoft.com/en-us/power-apps/developer/data-platform/org-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](https://learn.microsoft.com/en-us/power-apps/developer/data-platform/write-plug-in)

Source: [AB-400: Dataverse API Clients and OAuth Authentication](https://learningpathx.com/news/ab-400-dataverse-api-clients-and-oauth-authentication.html)
