vpls360csr_UpdatePersonalDetails

This Integration Procedure updates the name, phone number, and email address for an account.

Sample Input

1{
2  "ContactId": "0033t000037TkbPAAS",
3  "BillingAddressChange": true,
4  "ShippingAddressChange": true,
5  "BillingAddress": {
6    "BillingCity": "bilCty4",
7    "BillingCountry": "bilCnt4",
8    "BillingState": "bilStt4",
9    "BillingStreet": "billStr4",
10    "BillingZipCode": "123124"
11  },
12  "ShippingAddress": {
13    "ShippingCity": "shpCty",
14    "ShippingCountry": "shpCnt",
15    "ShippingState": "shpStt",
16    "ShippingStreet": "shpStr",
17    "ShippingZipCode": "555666"
18  },
19  "NameChange": true,
20  "NameDetails": {
21    "FirstName": "Walter",
22    "LastName": "White",
23    "Salutation": "Mr."
24  },
25  "PhoneChange" : true,
26  "PhoneDetails":{
27    "ContactPhone": 1231231231
28  },
29  "EmailChange" : true,
30  "EmailDetails": {
31    "Email": "Walterjr@bb1.com"
32  },
33  "InteractionNode":{
34    "interactionTopicId" : "a1R5w000006mvWFEAY"
35  }
36}

Parameter

Required/Optional

BillingAddressChange

Required

BillingCity

Required

ContactId

Required

EmailChange

Required

EmailDetails

Required

InteractionNode

Required

interactionTopicId

Required

NameChange

Required

NameDetails

Required

PhoneChange

Required

PhoneDetails

Required

ShippingAddress

Required

ShippingAddressChange

Required

Sample Output

1{
2  "response": {},
3  "ResponseStatus": true,
4  "UpdateInteractionTopic": {
5    "ineractionStatus": {
6      "UpsertSuccess": true,
7      "vlocity_cmt__Outcome__c": "sucessful",
8      "Id": "a154x000000f4gNAAQ"
9    }
10  },
11  "UpdateInteractionTopicStatus": true,
12  "UpdateEmail": {
13    "ActualTime": 2220,
14    "CpuTime": 1491,
15    "User_2": [
16      {
17        "UpsertSuccess": true,
18        "Id": "0054x000002EvdFAAS",
19        "ContactId": "0034x000006y85xAAA"
20      }
21    ],
22    "Contact_1": [
23      {
24        "UpsertSuccess": true,
25        "Id": "0034x000006y85xAAA"
26      }
27    ],
28    "error": "OK",
29    "responseType": "SObject"
30  },
31  "UpdateEmailStatus": true,
32  "UpdatePhone": {
33    "ActualTime": 1839,
34    "CpuTime": 1208,
35    "Account_2": [
36      {
37        "UpsertSuccess": true,
38        "Phone": "1231231231",
39        "Id": "0014x000009RJGWAA4"
40      }
41    ],
42    "Contact_1": [
43      {
44        "UpsertSuccess": true,
45        "Phone": "1231231231",
46        "Id": "0034x000006y85xAAA"
47      }
48    ],
49    "error": "OK",
50    "responseType": "SObject"
51  },
52  "UpdatePhoneStatus": true,
53  "UpdateName": {
54    "ActualTime": 1600,
55    "CpuTime": 1046,
56    "User_3": [
57      {
58        "UpsertSuccess": true,
59        "Id": "0054x000002EvdFAAS",
60        "ContactId": "0034x000006y85xAAA",
61        "LastName": "White",
62        "FirstName": "Walter"
63      }
64    ],
65    "Account_2": [
66      {
67        "UpsertSuccess": true,
68        "Name": "Walter White",
69        "Id": "0014x000009RJGWAA4"
70      }
71    ],
72    "Contact_1": [
73      {
74        "UpsertSuccess": true,
75        "Salutation": "Mr.",
76        "LastName": "White",
77        "FirstName": "Walter",
78        "Id": "0034x000006y85xAAA"
79      }
80    ],
81    "error": "OK",
82    "responseType": "SObject"
83  },
84  "UpdateNameStatus": true,
85  "UpdateAddress": {
86    "ActualTime": 667,
87    "CpuTime": 510,
88    "Account_2": [
89      {
90        "UpsertSuccess": true,
91        "ShippingStreet": "shpStr",
92        "ShippingState": "shpStt",
93        "ShippingPostalCode": "555666",
94        "ShippingCountry": "shpCnt",
95        "ShippingCity": "shpCty",
96        "BillingStreet": "billStr4",
97        "BillingState": "bilStt4",
98        "BillingPostalCode": "123124",
99        "BillingCountry": "bilCnt4",
100        "BillingCity": "bilCty4",
101        "Id": "0014x000009RJGWAA4"
102      }
103    ],
104    "Contact_1": [
105      {
106        "UpsertSuccess": true,
107        "MailingStreet": "billStr4",
108        "MailingState": "bilStt4",
109        "MailingPostalCode": "123124",
110        "MailingCountry": "bilCnt4",
111        "MailingCity": "bilCty4",
112        "Id": "0034x000006y85xAAA"
113      }
114    ],
115    "error": "OK",
116    "responseType": "SObject"
117  },
118  "UpdateAddressStatus": true,
119  "options": {
120    "useQueueableApexRemoting": false,
121    "queueableChainable": false,
122    "ignoreCache": true,
123    "resetCache": false,
124    "chainable": false
125  },
126  "InteractionNode": {
127    "interactionTopicId": "a154x000000f4gNAAQ"
128  },
129  "EmailDetails": {
130    "Email": "Walterjr@bb1.com"
131  },
132  "EmailChange": true,
133  "PhoneDetails": {
134    "ContactPhone": 1231231231
135  },
136  "PhoneChange": true,
137  "NameDetails": {
138    "Salutation": "Mr.",
139    "LastName": "White",
140    "FirstName": "Walter"
141  },
142  "NameChange": true,
143  "ShippingAddress": {
144    "ShippingZipCode": "555666",
145    "ShippingStreet": "shpStr",
146    "ShippingState": "shpStt",
147    "ShippingCountry": "shpCnt",
148    "ShippingCity": "shpCty"
149  },
150  "BillingAddress": {
151    "BillingZipCode": "123124",
152    "BillingStreet": "billStr4",
153    "BillingState": "bilStt4",
154    "BillingCountry": "bilCnt4",
155    "BillingCity": "bilCty4"
156  },
157  "ShippingAddressChange": true,
158  "BillingAddressChange": true,
159  "ContactId": "0034x000006y85xAAA"
160}

Called By

  • Flows:

    • Agent console: Update Personal Details

  • Components:

    • Omniscript: vpls360csr_UpdatePersonalDetails

Calls

  • Data Mapper: vpls360csr-UpdateAccountName

  • Data Mapper: vpls360csr-UpdateBillingAddress

  • Data Mapper: vpls360csr-UpdatePhone

  • Data Mapper: vpls360Csr-UpdateEmail