Skip to content

Releases: AleksandrRogov/DynamicsWebApi

v2.1.3

11 Apr 02:58

Choose a tag to compare

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

10 Apr 15:38

Choose a tag to compare

Changes:

  • Added a skipNameCheck for composable functions workaround #168

v2.1.2

22 Dec 18:45

Choose a tag to compare

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

02 Sep 17:37

Choose a tag to compare

Changes:

  • Minor changes in type declarations.

v2.1.0

27 Aug 17:19

Choose a tag to compare

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

16 Aug 13:49

Choose a tag to compare

Fixes:

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

v2.0.0

20 Jul 14:16

Choose a tag to compare

Version 2 is out! 🙌
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! 👍

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

16 Jul 22:57

Choose a tag to compare

v2.0.0-beta.4 Pre-release
Pre-release

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

14 Jul 23:58

Choose a tag to compare

v2.0.0-beta.3 Pre-release
Pre-release

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

v1.7.11

14 Jul 23:42

Choose a tag to compare

Fixes:

  • Wrong error message in case of network error. #153
  • Incorrect bundle for a browser.