DynamicsWebApi Versions Save

DynamicsWebApi is a Microsoft Dataverse Web API helper library for JavaScript & TypeScript

v2.1.4

1 month ago

Fixes

  • name property in a callFunction must be optional, until functionName is removed.

v2.1.3

1 month ago

Changes:

  • Added support for composable functions. Request object in callFunction now accepts select and filter parameters. #168
  • ContentId can be used as an URI reference inside the Batch Request. For example:
dynamicsWebApi.startBatch();

dynamicsWebApi.create({
  contentId: "1", //<-- this content id will be used in the next request
  collection: "contacts",
  data: {
    firstname: "James",
    lastname: "Doe"
  }
});

dynamicsWebApi.updateSingleProperty({
  contentId: "$1", //<-- using content id of the record created in a previous request
  // note, that neither "collection" nor "key" is used in this request, 
  // contentId replaces those
  fieldValuePair: { lastname: "Bond" }
});

const results = await dynamicsWebApi.executeBatch();
//results[0] will have an id of a contact record
//results[1] will be empty

Deprecations:

  • functionName parameter in callFunction is marked as deprecated and will be removed in one of the future versions. Please use name instead.

v1.7.12

1 month ago

Changes:

  • Added a skipNameCheck for composable functions workaround #168

v2.1.2

4 months ago

Changes:

  • Added @odata.nextLink, @odata.count and @odata.deltaLink to TypeScript definitions.

Fixes:

  • Duplicate query parameters during pagination with nextPageLink parameter in retrieveMultiple. #164
  • Duplicate serverUrl in a request url during pagination with nextPageLink parameter in retrieveMultiple. This only happened if serverUrl in DynamicsWebApi config had a closing slash. #164

v2.1.1

8 months ago

Changes:

  • Minor changes in type declarations.

v2.1.0

8 months ago

Changes:

  • Custom headers can now be added by default through the configuration object, or included with each request. #151 For example: await dynamicsWebApi.retrieveMultiple({ collection: "contacts", headers: { "my-header": "value" } });
  • Added support for Microsoft Power Pages. Thanks to @03-CiprianoG for the PRs! More Info.

v2.0.1

9 months ago

Fixes:

  • Object.hasOwn is replaced with hasOwnProperty because it's not supported in Node v15. #160

v2.0.0

9 months ago

Version 2 is out! :raised_hands: What a run... I am very excited to see how many of you will migrate and, of course, I will be happy to hear your comments and/or you have any issues with it. Special thank you to all who helped me to test the beta version of the library! :thumbsup:

v2 open discussion is here.

Forgot to include the .js.map files in this release on GitHub, so if you'd like to get them please refer to this commit.

More details about v2:

  • What's new in version 2? Check out this link.
  • For the list of Breaking Changes check out this link.

v2.0.0-beta.4

10 months ago

This is a beta release of v2. Thus, there can still be changes and fixes. For testing purposes only!

Fixes:

  • Several issues with ESM bundles.

Also found a bug in Dynamics 365 with batch operations. It throws an error when multiple non-atomic operations that change data were done. A workaround there is to add a "GET" request at the end of the batch to make it work. Seems like that bug was there for a looong time already.

v2.0.0-beta.3 was not the last one, so I lied! :) Hopefully, this one will be the last!

More details about v2:

  • What's new in version 2? Check out this link.
  • For the list of Breaking Changes check out this link

v2.0.0-beta.3

10 months ago

This is a beta release of v2. Thus, there can still be changes and fixes. For testing purposes only!

Fixes:

  • Wrong error message in case of network error. #153

This will be the last beta release for v2. The official release will be either this weekend or next week!

More details about v2:

  • What's new in version 2? Check out this link.
  • For the list of Breaking Changes check out this link