@truenorth-it/dataverse-client 1.0.3 → 1.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +17 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -259,6 +259,23 @@ const result = await client.me.create("casenotes", {
|
|
|
259
259
|
console.log(result.data.annotationid); // new note GUID
|
|
260
260
|
```
|
|
261
261
|
|
|
262
|
+
The API automatically binds contact and account relationship fields when creating records.
|
|
263
|
+
For tables with auto-binding configured (like `incident`), you only need to provide content fields:
|
|
264
|
+
|
|
265
|
+
```typescript
|
|
266
|
+
// Create a case — contact and account are auto-bound from your identity
|
|
267
|
+
const newCase = await client.me.create("incident", {
|
|
268
|
+
title: "VPN not connecting",
|
|
269
|
+
description: "Getting timeout errors when connecting to corporate VPN.",
|
|
270
|
+
});
|
|
271
|
+
|
|
272
|
+
console.log(newCase.data.incidentid); // new case GUID
|
|
273
|
+
console.log(newCase.data.ticketnumber); // auto-generated case number
|
|
274
|
+
```
|
|
275
|
+
|
|
276
|
+
You do **not** need to set `primarycontactid` or `customerid_account` — the API resolves
|
|
277
|
+
these from your authenticated identity and binds them automatically.
|
|
278
|
+
|
|
262
279
|
### Update a record
|
|
263
280
|
|
|
264
281
|
Available on all scopes (`me`, `team`, `all`):
|