Releases: AleksandrRogov/DynamicsWebApi
v2.1.3
Changes:
- Added support for composable functions. Request object in
callFunctionnow acceptsselectandfilterparameters. #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 emptyDeprecations:
functionNameparameter incallFunctionis marked as deprecated and will be removed in one of the future versions. Please usenameinstead.
v1.7.12
v2.1.2
Changes:
- Added
@odata.nextLink,@odata.countand@odata.deltaLinkto TypeScript definitions.
Fixes:
v2.1.1
Changes:
- Minor changes in type declarations.
v2.1.0
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
v2.0.0
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:
v2.0.0-beta.4
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:
v2.0.0-beta.3
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: