-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfieldMapping.json
128 lines (128 loc) · 4.69 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
{
"Version": "v1",
"MappingFields": [
{
"Name": "AutoReplyState",
"Description": "[Required] if using the delete script for enabling AutoReplyState",
"Type": "Text",
"MappingActions": [
{
"MapForActions": [
"Delete"
],
"MappingMode": "Fixed",
"Value": "\"Enabled\"",
"UsedInNotifications": false,
"StoreInAccountData": false
}
]
},
{
"Name": "guid",
"Description": "[Required] Account Reference is written back to account data",
"Type": "Text",
"MappingActions": [
{
"MapForActions": [
"Create"
],
"MappingMode": "None",
"Value": "\"\"",
"UsedInNotifications": false,
"StoreInAccountData": true
}
]
},
{
"Name": "InternalMessage",
"Description": "[Required] if using the delete script for enabling AutoReplyState",
"Type": "Text",
"MappingActions": [
{
"MapForActions": [
"Delete"
],
"MappingMode": "Complex",
"Value": "\"function getValue() {\\n let manager = Person.PrimaryManager.DisplayName;\\n let managerName = 'PutHereYourFallBackManagerName';\\n\\n if (typeof manager !== 'undefined' && manager) {\\n managerName = manager.split(' (')[0];\\n }\\n\\n let output = 'Dear colleague, thank you for your message. ';\\n output = output + 'I am no longer employed at YourCompany. ';\\n output = output + 'Your mail will be forwarded to ' + managerName;\\n return output;\\n}\\n\\ngetValue();\"",
"UsedInNotifications": false,
"StoreInAccountData": false
}
]
},
{
"Name": "ExternalMessage",
"Description": "[Required] if using the delete script for enabling AutoReplyState",
"Type": "Text",
"MappingActions": [
{
"MapForActions": [
"Delete"
],
"MappingMode": "Complex",
"Value": "\"function getValue() {\\n let manager = Person.PrimaryManager.DisplayName;\\n let managerMailToCheck = Person.PrimaryManager.Email;\\n let managerName = 'PutHereYourFallBackManagerName';\\n let managerMail = 'PutHereYourFallBackManagerMail@mail.com';\\n\\n if (typeof manager !== 'undefined' && manager) {\\n managerName = manager.split(' (')[0];\\n }\\n if (typeof managerMailToCheck !== 'undefined' && managerMailToCheck) {\\n managerMail = managerMailToCheck;\\n }\\n\\n let output = 'Dear Sir, Madam, Thank you for your email. ';\\n output = output + 'I am no longer employed at YourCompany. ';\\n output = output + 'Your mail is automatically forwarded to my colleague ' + managerName;\\n output = output + 'with mail address ' + managerMail;\\n\\n return output;\\n}\\n\\ngetValue();\"",
"UsedInNotifications": false,
"StoreInAccountData": false
}
]
},
{
"Name": "userPrincipalName",
"Description": "[Required] for correlation",
"Type": "Text",
"MappingActions": [
{
"MapForActions": [
"Create"
],
"MappingMode": "None",
"Value": "\"\"",
"UsedInNotifications": false,
"StoreInAccountData": false
}
]
},
{
"Name": "HiddenFromAddressListsEnabled",
"Description": "[Required] if using the enable and disable script for HiddenFromAddressListsEnabled.\nRemoving the field from the create action will result in correlation only within the create script.\n",
"Type": "Text",
"MappingActions": [
{
"MapForActions": [
"Create",
"Disable"
],
"MappingMode": "Fixed",
"Value": "\"true\"",
"UsedInNotifications": false,
"StoreInAccountData": false
},
{
"MapForActions": [
"Enable"
],
"MappingMode": "Fixed",
"Value": "\"false\"",
"UsedInNotifications": false,
"StoreInAccountData": false
}
]
},
{
"Name": "CustomAttribute1",
"Description": "[Required] if using the update script for updating custom attributes.\nAt least one custom attribute is required when using the update script to update custom attributes.",
"Type": "Text",
"MappingActions": [
{
"MapForActions": [
"Update"
],
"MappingMode": "Field",
"Value": "\"Person.PrimaryContract.Title.Name\"",
"UsedInNotifications": false,
"StoreInAccountData": false
}
]
}
],
"UniqueFieldNames": []
}