You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+4-2Lines changed: 4 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -181,14 +181,16 @@ Property Name | Type | Operation(s) Supported | Description
181
181
async | Boolean | All | **Important! XHR requests only!** Indicates whether the requests should be made synchronously or asynchronously. Default value is `true` (asynchronously).
182
182
collection | String | All | The name of the Entity Collection, for example, for `account` use `accounts`, `opportunity` - `opportunities` and etc.
183
183
count | Boolean | `retrieveMultipleRequest`, `retrieveAllRequest` | Boolean that sets the $count system query option with a value of true to include a count of entities that match the filter criteria up to 5000 (per page). Do not use $top with $count!
184
+
duplicateDetection | Boolean | `createRequest`, `updateRequest`, `upsertRequest` | `v.1.3.4+`** Web API v9+ only!** Boolean that enables duplicate detection. [More info](https://docs.microsoft.com/en-us/dynamics365/customer-engagement/developer/webapi/update-delete-entities-using-web-api#check-for-duplicate-records)
184
185
entity | Object | `updateRequest`, `upsertRequest` | A JavaScript object with properties corresponding to the logical name of entity attributes (exceptions are lookups and single-valued navigation properties).
185
186
expand | Array | `retrieveRequest`, `updateRequest`, `upsertRequest` | An array of Expand Objects (described below the table) representing the $expand OData System Query Option value to control which related records are also returned.
186
187
filter | String | `retrieveRequest`, `retrieveMultipleRequest`, `retrieveAllRequest` | Use the $filter system query option to set criteria for which entities will be returned.
187
-
id | String | `retrieveRequest`, `updateRequest`, `upsertRequest`, `deleteRequest` | A String representing the GUID value for the record.
188
+
id | String | `retrieveRequest`, `updateRequest`, `upsertRequest`, `deleteRequest` | `deprecated in v.1.3.4` Use `key` field, instead of `id`. A String representing the GUID value for the record.
188
189
ifmatch | String | `retrieveRequest`, `updateRequest`, `upsertRequest`, `deleteRequest` | Sets If-Match header value that enables to use conditional retrieval or optimistic concurrency in applicable requests. [More info](https://msdn.microsoft.com/en-us/library/mt607711.aspx).
189
190
ifnonematch | String | `retrieveRequest`, `upsertRequest` | Sets If-None-Match header value that enables to use conditional retrieval in applicable requests. [More info](https://msdn.microsoft.com/en-us/library/mt607711.aspx).
190
191
impersonate | String | All | A String representing the GUID value for the Dynamics 365 system user id. Impersonates the user.
191
192
includeAnnotations | String | `retrieveRequest`, `retrieveMultipleRequest`, `retrieveAllRequest`, `updateRequest`, `upsertRequest` | Sets Prefer header with value "odata.include-annotations=" and the specified annotation. Annotations provide additional information about lookups, options sets and other complex attribute types.
maxPageSize | Number | `retrieveMultipleRequest`, `retrieveAllRequest` | Sets the odata.maxpagesize preference value to request the number of entities returned in the response.
193
195
navigationProperty | String | `retrieveRequest` | A String representing the name of a single-valued navigation property. Useful when needed to retrieve information about a related record in a single request.
194
196
orderBy | Array | `retrieveMultipleRequest`, `retrieveAllRequest` | An Array (of Strings) representing the order in which items are returned using the $orderby system query option. Use the asc or desc suffix to specify ascending or descending order respectively. The default is ascending if the suffix isn't applied.
@@ -199,7 +201,7 @@ token | String | All | Authorization Token. If set, onTokenRefresh will not be c
199
201
top | Number | `retrieveMultipleRequest`, `retrieveAllRequest` | Limit the number of results returned by using the $top system query option. Do not use $top with $count!
200
202
userQuery | String | `retrieveRequest` | A String representing the GUID value of the user query.
201
203
202
-
Basic and Advanced functions are also have differences in `expand` parameters. For Basic ones this parameter is a type of String
204
+
Basic and Advanced functions also have differences in `expand` parameters. For Basic ones this parameter is a type of String
203
205
while request.expand property is an Array of Expand Objects for Advanced operations. The following table describes Expand Object properties:
@@ -294,7 +294,7 @@ function DynamicsWebApi(config) {
294
294
295
295
varrequest={
296
296
collection: collection,
297
-
id: id,
297
+
key: key,
298
298
select: select,
299
299
prefer: prefer,
300
300
entity: object
@@ -306,18 +306,18 @@ function DynamicsWebApi(config) {
306
306
/**
307
307
* Sends an asynchronous request to update a single value in the record.
308
308
*
309
-
* @param {string} id - A String representing the GUID value for the record to update.
309
+
* @param {string} key - A String representing the GUID value or Alternate Key(s) for the record to update.
310
310
* @param {string} collection - The Name of the Entity Collection.
311
311
* @param {Object} keyValuePair - keyValuePair object with a logical name of the field as a key and a value to update with. Example: {subject: "Update Record"}
312
312
* @param {Function} successCallback - The function that will be passed through and be called by a successful response.
313
313
* @param {Function} errorCallback - The function that will be passed through and be called by a failed response.
314
314
* @param {string|Array} [prefer] - If set to "return=representation" the function will return an updated object
315
315
* @param {Array} [select] - An Array representing the $select Query Option to control which attributes will be returned.
@@ -391,24 +391,24 @@ function DynamicsWebApi(config) {
391
391
/**
392
392
* Sends an asynchronous request to delete a record.
393
393
*
394
-
* @param {string} id - A String representing the GUID value for the record to delete.
394
+
* @param {string} key - A String representing the GUID value or Alternate Key(s) for the record to delete.
395
395
* @param {string} collection - The Name of the Entity Collection.
396
396
* @param {Function} successCallback - The function that will be passed through and be called by a successful response.
397
397
* @param {Function} errorCallback - The function that will be passed through and be called by a failed response.
398
398
* @param {string} [propertyName] - The name of the property which needs to be emptied. Instead of removing a whole record only the specified property will be cleared.
@@ -453,17 +453,17 @@ function DynamicsWebApi(config) {
453
453
/**
454
454
* Sends an asynchronous request to retrieve a record.
455
455
*
456
-
* @param {string} id - A String representing the GUID value for the record to retrieve.
456
+
* @param {string} key - A String representing the GUID value or Alternate Key(s) for the record to retrieve.
457
457
* @param {string} collection - The Name of the Entity Collection.
458
458
* @param {Function} successCallback - The function that will be passed through and be called by a successful response.
459
459
* @param {Function} errorCallback - The function that will be passed through and be called by a failed response.
460
460
* @param {Array} [select] - An Array representing the $select Query Option to control which attributes will be returned.
461
461
* @param {string|Array} [expand] - A String or Array of Expand Objects representing the $expand Query Option value to control which related records need to be returned.
0 commit comments