forked from microsoft/CDM
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Contact.cdm.json
134 lines (134 loc) · 4.68 KB
/
Contact.cdm.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
{
"documentVersion": "1.3",
"jsonSchemaSemanticVersion": "1.0.0",
"imports": [
{
"corpusPath": "_allImports.cdm.json"
}
],
"definitions": [
{
"entityName": "Contact",
"extendsEntity": "base_Contact/Contact",
"exhibitsTraits": [
{
"traitReference": "is.CDM.entityVersion",
"arguments": [
{
"name": "versionNumber",
"value": "1.3"
}
]
}
],
"hasAttributes": [
{
"attributeGroupReference": {
"attributeGroupName": "attributesAddedAtThisScope",
"members": [
{
"entity": {
"entityReference": "PriceList",
"appliedTraits": [
{
"traitReference": "is.identifiedBy",
"arguments": [
"PriceList/(resolvedAttributes)/priceLevelId"
]
}
]
},
"name": "defaultPriceLevel",
"resolutionGuidance": {
"entityByReference": {
"allowReference": true,
"foreignKeyAttribute": {
"name": "id",
"purpose": "hasA",
"dataType": "entityId",
"appliedTraits": [
{
"traitReference": "is.CDS.lookup",
"arguments": [
{
"name": "style",
"value": "single"
}
]
},
{
"traitReference": "is.requiredAtLevel",
"arguments": [
{
"name": "level",
"value": "none"
}
]
},
{
"traitReference": "is.localized.displayedAs",
"arguments": [
{
"entityReference": {
"entityShape": "localizedTable",
"constantValues": [
[
"en",
"Price List"
]
]
}
}
]
},
{
"traitReference": "is.localized.describedAs",
"arguments": [
{
"entityReference": {
"entityShape": "localizedTable",
"constantValues": [
[
"en",
"Choose the default price list associated with the contact to make sure the correct product prices for this customer are applied in sales opportunities, quotes, and orders."
]
]
}
}
]
},
"is.linkedEntity.identifier"
],
"isNullable": true,
"sourceName": "defaultpricelevelid",
"sourceOrdering": 10003,
"displayName": "Price List",
"description": "Choose the default price list associated with the contact to make sure the correct product prices for this customer are applied in sales opportunities, quotes, and orders."
}
}
}
}
],
"exhibitsTraits": [
{
"traitReference": "is.CDM.attributeGroup",
"arguments": [
{
"entityReference": {
"entityShape": "attributeGroupSet",
"constantValues": [
[
"/core/applicationCommon/foundationCommon/Contact.cdm.json/Contact/hasAttributes/attributesAddedAtThisScope"
]
]
}
}
]
}
]
}
}
]
}
]
}