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
You can also use common request functions to create, retrieve and update entity and attribute metadata. Just use the following rules:
1385
1385
1386
-
1. Always set `collectionName: 'EntityDefinitions'`.
1386
+
1. Always set `collection: 'EntityDefinitions'`.
1387
1387
2. To retrieve a specific **entity metadata** by a Primary or Alternate Key use `key` property. For example: `key: 'LogicalName="account"'`.
1388
1388
3. To get attributes, set `navigationProperty: 'Attributes'`.
1389
1389
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):
1396
1396
1397
1397
```js
1398
1398
var request = {
1399
-
collectionName:'EntityDefinitions',
1399
+
collection:'EntityDefinitions',
1400
1400
key:'00000000-0000-0000-0000-000000000001',
1401
1401
select: ['LogicalName', 'SchemaName'],
1402
1402
expand:'Attributes'
@@ -1413,7 +1413,7 @@ Retrieve attribute metadata and cast it to the StringType:
1413
1413
1414
1414
```js
1415
1415
var request = {
1416
-
collectionName:'EntityDefinitions',
1416
+
collection:'EntityDefinitions',
1417
1417
key:'LogicalName="account"',
1418
1418
navigationProperty:'Attributes',
1419
1419
navigationPropertyKey:'LogicalName="firstname"',
@@ -1431,7 +1431,7 @@ Update entity metadata with **MSCRM.MergeLabels** header set to `true`:
@@ -2010,4 +2010,4 @@ And if you would like to contribute to the project you may do it in multiple way
2010
2010
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.
2011
2011
5. If you feel that this project saved your time and you would like to support it, then please feel free to donate: [](https://paypal.me/alexrogov)
0 commit comments