-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfieldMapping.json
175 lines (175 loc) · 6.52 KB
/
fieldMapping.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
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
{
"Version": "v1",
"MappingFields": [
{
"Name": "Department",
"Description": "Mandatory Property: Used for mapping Net2 Departments.",
"Type": "Text",
"MappingActions": [
{
"MapForActions": [
"Create",
"Update"
],
"MappingMode": "Field",
"Value": "\"Person.PrimaryContract.Department.ExternalId\"",
"UsedInNotifications": false,
"StoreInAccountData": true
}
]
},
{
"Name": "Id",
"Description": "",
"Type": "Text",
"MappingActions": [
{
"MapForActions": [
"Create"
],
"MappingMode": "None",
"Value": "null",
"UsedInNotifications": false,
"StoreInAccountData": true
}
]
},
{
"Name": "FirstName",
"Description": "",
"Type": "Text",
"MappingActions": [
{
"MapForActions": [
"Create",
"Update"
],
"MappingMode": "Field",
"Value": "\"Person.Name.NickName\"",
"UsedInNotifications": false,
"StoreInAccountData": false
}
]
},
{
"Name": "Telephone",
"Description": "",
"Type": "Text",
"MappingActions": [
{
"MapForActions": [
"Create",
"Update"
],
"MappingMode": "Field",
"Value": "\"Person.Contact.Business.Phone.Fixed\"",
"UsedInNotifications": false,
"StoreInAccountData": false
}
]
},
{
"Name": "LastName",
"Description": "",
"Type": "Text",
"MappingActions": [
{
"MapForActions": [
"Create",
"Update"
],
"MappingMode": "Complex",
"Value": "\"\\r\\n// Please enter the mapping logic to generate the lastName based on name convention.\\r\\n\\r\\nfunction generatelastName() {\\r\\n let middleName = Person.Name.FamilyNamePrefix;\\r\\n let lastName = Person.Name.FamilyName;\\r\\n let middleNamePartner = Person.Name.FamilyNamePartnerPrefix;\\r\\n let lastNamePartner = Person.Name.FamilyNamePartner;\\r\\n let convention = Person.Name.Convention;\\r\\n let nameFormatted = '';\\r\\n\\r\\n // B\\t van den Boele\\r\\n // BP\\t van den Boele - de Vries\\r\\n // P\\t de Vries\\r\\n // PB\\t de Vries - van den Boele\\r\\n\\r\\n switch (convention) {\\r\\n case \\\"B\\\":\\r\\n if (typeof middleName !== 'undefined' && middleName) { nameFormatted = nameFormatted + ' ' + middleName }\\r\\n nameFormatted = nameFormatted + ' ' + lastName;\\r\\n break;\\r\\n case \\\"BP\\\":\\r\\n nameFormatted = '';\\r\\n if (typeof middleName !== 'undefined' && middleName) { nameFormatted = nameFormatted + ' ' + middleName }\\r\\n nameFormatted = nameFormatted + ' ' + lastName;\\r\\n\\r\\n nameFormatted = nameFormatted + ' - ';\\r\\n\\r\\n if (typeof middleNamePartner !== 'undefined' && middleNamePartner) { nameFormatted = nameFormatted + middleNamePartner + ' ' }\\r\\n nameFormatted = nameFormatted + lastNamePartner;\\r\\n break;\\r\\n case \\\"P\\\":\\r\\n nameFormatted = '';\\r\\n if (typeof middleNamePartner !== 'undefined' && middleNamePartner) { nameFormatted = nameFormatted + ' ' + middleNamePartner }\\r\\n nameFormatted = nameFormatted + ' ' + lastNamePartner;\\r\\n break;\\r\\n case \\\"PB\\\":\\r\\n nameFormatted = '';\\r\\n if (typeof middleNamePartner !== 'undefined' && middleNamePartner) { nameFormatted = nameFormatted + ' ' + middleNamePartner }\\r\\n nameFormatted = nameFormatted + ' ' + lastNamePartner;\\r\\n\\r\\n nameFormatted = nameFormatted + ' - ';\\r\\n\\r\\n if (typeof middleName !== 'undefined' && middleName) { nameFormatted = nameFormatted + middleName + ' ' }\\r\\n nameFormatted = nameFormatted + lastName;\\r\\n break;\\r\\n default:\\r\\n nameFormatted = '';\\r\\n if (typeof middleName !== 'undefined' && middleName) { nameFormatted = nameFormatted + ' ' + middleName }\\r\\n nameFormatted = nameFormatted + ' ' + lastName;\\r\\n break;\\r\\n }\\r\\n const lastNameFormatted = nameFormatted.trim();\\r\\n\\r\\n return lastNameFormatted;\\r\\n}\\r\\n\\r\\ngeneratelastName();\"",
"UsedInNotifications": false,
"StoreInAccountData": false
}
]
},
{
"Name": "Email.Id",
"Description": "",
"Type": "Text",
"MappingActions": [
{
"MapForActions": [
"Create",
"Update"
],
"MappingMode": "Fixed",
"Value": "\"9\"",
"UsedInNotifications": false,
"StoreInAccountData": false
}
]
},
{
"Name": "Email.Value",
"Description": "",
"Type": "Text",
"MappingActions": [
{
"MapForActions": [
"Create",
"Update"
],
"MappingMode": "Field",
"Value": "\"Person.Contact.Business.Email\"",
"UsedInNotifications": false,
"StoreInAccountData": false
}
]
},
{
"Name": "PersonnelNumber.Id",
"Description": "",
"Type": "Text",
"MappingActions": [
{
"MapForActions": [
"Create",
"Update"
],
"MappingMode": "Fixed",
"Value": "\"14\"",
"UsedInNotifications": false,
"StoreInAccountData": false
}
]
},
{
"Name": "PersonnelNumber.Value",
"Description": "",
"Type": "Text",
"MappingActions": [
{
"MapForActions": [
"Create",
"Update"
],
"MappingMode": "Field",
"Value": "\"Person.ExternalId\"",
"UsedInNotifications": false,
"StoreInAccountData": false
}
]
},
{
"Name": "MiddleName",
"Description": "",
"Type": "Text",
"MappingActions": [
{
"MapForActions": [
"Create",
"Update"
],
"MappingMode": "Field",
"Value": "\"Person.Name.FamilyNamePrefix\"",
"UsedInNotifications": false,
"StoreInAccountData": false
}
]
}
],
"UniqueFieldNames": []
}