Skip to content

Commit 5cf9b62

Browse files
allow an alternate key format for @odata.id; fixes #195
1 parent d0a9ca8 commit 5cf9b62

28 files changed

+702
-818
lines changed

.github/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2863,6 +2863,7 @@ the config option "formatted" will enable developers to retrieve all information
28632863
- [X] Background Operations for custom actions. `Added in v2.3.0`
28642864
- [X] Support Search API 2.0 [#174](https://github.com/AleksandrRogov/DynamicsWebApi/issues/174). `Added in v2.3.0`
28652865
- [ ] [Session token](https://learn.microsoft.com/en-ca/power-apps/developer/data-platform/use-elastic-tables?tabs=webapi#work-with-the-session-token) support. `Coming in v2.3.x`
2866+
- [ ] Support for a custom logger + a console fallback debug logging.
28662867
- [ ] Custom requests.
28672868

28682869
Many more features to come!

dist/browser/esm/dynamics-web-api.js

Lines changed: 20 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/browser/esm/dynamics-web-api.js.map

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/cjs/dynamics-web-api.js

Lines changed: 20 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/cjs/dynamics-web-api.js.map

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/dynamics-web-api.d.ts

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*! dynamics-web-api v2.3.2 (c) 2025 Aleksandr Rogov. License: MIT */
1+
/*! dynamics-web-api v2.4.0 (c) 2025 Aleksandr Rogov. License: MIT */
22
/**
33
* Microsoft Dataverse Web API helper library for Node.js and Browser.
44
* It is compatible with: Dataverse, Dynamics 365 (online), Dynamics 365 (on-premise), Dynamics CRM 2016, Dynamics CRM Online.
@@ -408,6 +408,12 @@ export declare class DynamicsWebApi {
408408
* @returns {string | null} collection name
409409
*/
410410
getCollectionName: (entityName: string) => string | null;
411+
/**
412+
* Adds an absolute Web API URL to the beginning of a provided value.
413+
* @param value The value to modify.
414+
* @returns The absolute URL.
415+
*/
416+
toAbsoluteUrl: (value: string) => string;
411417
};
412418
}
413419
export interface Expand {
@@ -1058,6 +1064,12 @@ export interface Config {
10581064
* You can also set a callback URL per request.
10591065
*/
10601066
backgroundOperationCallbackUrl?: string;
1067+
/**
1068+
* Disables enforcement of absolute URLs for @odata.id properties in the request body.
1069+
* In some cases, @odata.id has an alternate key format that does not use absolute URLs, for example:
1070+
* In an UpsertMultiple action body.
1071+
*/
1072+
disableODataIdAbsoluteUrl?: boolean;
10611073
}
10621074
/**Header collection type */
10631075
export type HeaderCollection = Record<string, string>;

dist/dynamics-web-api.js

Lines changed: 20 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)