Skip to content

Commit dbc34e5

Browse files
2 parents 43a0fd0 + cc3f628 commit dbc34e5

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1383,7 +1383,7 @@ dynamicsWebApi.retrieveAttributes(entityKey, 'Microsoft.Dynamics.CRM.MoneyAttrib
13831383

13841384
You can also use common request functions to create, retrieve and update entity and attribute metadata. Just use the following rules:
13851385

1386-
1. Always set `collectionName: 'EntityDefinitions'`.
1386+
1. Always set `collection: 'EntityDefinitions'`.
13871387
2. To retrieve a specific **entity metadata** by a Primary or Alternate Key use `key` property. For example: `key: 'LogicalName="account"'`.
13881388
3. To get attributes, set `navigationProperty: 'Attributes'`.
13891389
4. To retrieve a specific **attribute metadata** by Primary or Alternate Key use `navigationPropertyKey`. For example: `navigationPropertyKey: '00000000-0000-0000-0000-000000000002'`.
@@ -1396,7 +1396,7 @@ Retrieve entity metadata with attributes (with common properties):
13961396

13971397
```js
13981398
var request = {
1399-
collectionName: 'EntityDefinitions',
1399+
collection: 'EntityDefinitions',
14001400
key: '00000000-0000-0000-0000-000000000001',
14011401
select: ['LogicalName', 'SchemaName'],
14021402
expand: 'Attributes'
@@ -1413,7 +1413,7 @@ Retrieve attribute metadata and cast it to the StringType:
14131413

14141414
```js
14151415
var request = {
1416-
collectionName: 'EntityDefinitions',
1416+
collection: 'EntityDefinitions',
14171417
key: 'LogicalName="account"',
14181418
navigationProperty: 'Attributes',
14191419
navigationPropertyKey: 'LogicalName="firstname"',
@@ -1431,7 +1431,7 @@ Update entity metadata with **MSCRM.MergeLabels** header set to `true`:
14311431

14321432
```js
14331433
var request = {
1434-
collectionName: 'EntityDefinitions',
1434+
collection: 'EntityDefinitions',
14351435
key: 'LogicalName="account"'
14361436
};
14371437

@@ -1440,7 +1440,7 @@ dynamicsWebApi.retrieveRequest(request).then(function(entityMetadata){
14401440
entityMetadata.DisplayName.LocalizedLabels[0].Label = 'Organization';
14411441
//2. configure update request
14421442
var updateRequest = {
1443-
collectionName: 'EntityDefinitions',
1443+
collection: 'EntityDefinitions',
14441444
key: entityMetadata.MetadataId,
14451445
mergeLabels: true,
14461446
entity: entityMetadata
@@ -2010,4 +2010,4 @@ And if you would like to contribute to the project you may do it in multiple way
20102010
4. Feel free to connect with me on [LinkedIn](https://www.linkedin.com/in/alexrogov/) and if you wish to let me know how you use `DynamicsWebApi` and what project you are working on, I will be happy to hear about it.
20112011
5. If you feel that this project saved your time and you would like to support it, then please feel free to donate: [![PayPal.Me](/extra/paypal.png)](https://paypal.me/alexrogov)
20122012

2013-
Any contribution is greatly appreciated!
2013+
Any contribution is greatly appreciated!

0 commit comments

Comments
 (0)