# dataverse-webapi

> Dataverse Web Api TypeScript Module

Latest version **3.3.0** (published 2026-05-04) · MIT license · 0 weekly downloads

## Install

```sh
npm install dataverse-webapi
pnpm add dataverse-webapi
yarn add dataverse-webapi
bun add dataverse-webapi
```

## Health

**Score 60/100 (C)** — status: stable.

Positive: has types; esm support; no vulnerabilities; high maintenance score.

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 3.3.0 |
| Published | 2026-05-04 |
| First published | 2021-01-12 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 86.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 31 |
| Author | Derek Finlinson |
| Maintainers | derekfinlinson |
| Keywords | dataverse, dynamics 365, dynamics 365, webapi, xrm, typescript, d365, common data service |

## Links

- npm: https://www.npmjs.com/package/dataverse-webapi
- Repository: https://github.com/derekfinlinson/powerapps-tools
- Homepage: https://github.com/derekfinlinson/powerapps-tools#readme
- Issues: https://github.com/derekfinlinson/powerapps-tools/issues
- npm.io page: https://npm.io/package/dataverse-webapi

## Alternatives

- [@openai/codex-sdk](https://npm.io/package/@openai/codex-sdk.md) — 731.4K weekly downloads
- [babel-plugin-transform-react-jsx](https://npm.io/package/babel-plugin-transform-react-jsx.md) — 565.0K weekly downloads
- [babel-helper-remove-or-void](https://npm.io/package/babel-helper-remove-or-void.md) — 508.5K weekly downloads
- [@pnpm/store-controller-types](https://npm.io/package/@pnpm/store-controller-types.md) — 186.9K weekly downloads
- [react-native-signature-canvas](https://npm.io/package/react-native-signature-canvas.md) — 155.6K weekly downloads

## Recent versions

- 3.3.0 (latest) — 2026-05-04
- 3.2.1 — 2026-01-30
- 3.2.0 — 2026-01-30
- 3.1.2 — 2025-11-13
- 3.1.1 — 2025-06-19
- 3.1.0 — 2025-05-13
- 3.0.2 — 2025-04-09
- 3.0.0 — 2025-04-09
- 2.6.0 — 2025-04-08
- 2.5.0 — 2024-08-09
- 2.4.3 — 2024-03-01
- 2.4.2 — 2023-06-30
- 2.4.1 — 2023-06-30
- 2.4.0 — 2023-02-27
- 2.3.0 — 2022-12-28
- … 15 more at https://npm.io/package/dataverse-webapi/versions

## README

# dataverse-webapi
|NPM|
|---|
|[![npm](https://img.shields.io/npm/v/dataverse-webapi.svg?style=flat-square)](https://www.npmjs.com/package/dataverse-webapi)|

A Dataverse Web Api TypeScript module for use in web resources or external web apps in the browser or node.

*Requires Dynamics CRM 2016 Online/On-Prem or later*

### Installation

##### Node

```
npm install dataverse-webapi
```
### Usage

#### Browser
```typescript
import { retrieve, WebApiConfig } from 'dataverse-webapi';

const config = new WebApiConfig('9.1')

const account = await retrieve(config, 'accounts', '00000000-0000-0000-0000-000000000000', '$select=name');

console.log(account.name);
```

#### Node
```typescript
import { retrieve, WebApiConfig } from 'dataverse-webapi/lib/node';

const config = new WebApiConfig('9.1', tokenFromAdal, 'https://org.crm.dynamics.com');

const account = await retrieve(config, 'accounts', '00000000-0000-0000-0000-000000000000', '$select=name');

console.log(account.name);
```

#### Angular

For use in Angular applications, I'd first recommend using their built in [HttpClient](https://angular.io/guide/http). Besides batch operations, most D365 Web Api requests are
pretty simple to construct. If you do want to use this library, the usage is the same as the browser usage:

```typescript
import { retrieveNode, WebApiConfig } from 'dataverse-webapi';

const config = new WebApiConfig('8.2', tokenFromAdal, 'https://org.crm.dynamics.com');

const account = await retrieve(config, 'accounts', '00000000-0000-0000-0000-000000000000', '$select=name');

console.log(account.name);
```

#### Supported methods
* Retrieve
* Retrieve multiple (multiple pages)
* Retrieve multiple with Fetch XML
* Create
* Create with returned data
* Update
* Update with returned data
* Update single property
* Delete
* Delete single property
* Associate
* Disassociate
* Web API Functions
* Web API Actions
* Batch operations
* Impersonation using Azure Object Id

#### Samples
See [samples.ts](samples/samples.ts) for examples

### Useful Links

[Web API Reference](https://docs.microsoft.com/en-us/powerapps/developer/data-platform/webapi/perform-operations-web-api)

---
_Source: https://npm.io/package/dataverse-webapi · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
