Update Account 1:
{
"httpMethodType": "GET",
"pagingInitialOffset": 0,
"sequenceNumberForEndpoint": "11",
"uniqueNameForEndPoint": "Update Account 1 (Get Object)",
"curlCommand": null,
"rootPath": null,
"body": {
"bodyFormData": null,
"jsonBody": null,
"bodyFormat": "raw"
},
"customAuthUrl": null,
"paginationSteps": null,
"responseCode": null,
"resMappingObj": {
"associations": "associations",
"country": "country",
"gender": "gender",
"homephone": "homephone",
"date_of_birth": "date_of_birth",
"person_type": "person_type",
"ss_no": "ss_no",
"mname": "mname",
"jobtype_id": "jobtype_id",
"title": "title",
"location_id": "location_id",
"securityRoles": "securityRoles",
"job_title_type": "job_title_type",
"lname": "lname",
"password": "",
"manager_id": "manager_id",
"started_on": "started_on",
"workphone": "workphone",
"id": "id",
"job_title": "job_title",
"email": "email",
"customValues": "customValues",
"securityDomain": "securityDomain",
"fname": "fname",
"company_id": "company_id",
"terminated_on": "terminated_on",
"is_manager": "is_manager",
"person_no": "person_no",
"special_user": "special_user",
"home_company_id": "home_company_id",
"timezone_id": "timezone_id",
"home_domain": "home_domain",
"status": "status",
"username": "username"
},
"contextUrl": "/v1/people/username=$getobject.nativeIdentity$?type=internal",
"pagingSize": 50,
"curlEnabled": false,
"header": {
"SabaCertificate": "$application.SabaCertificate$"
},
"operationType": "Update Account",
"beforeRule": "WebServiceBeforeOperationRule-GetObjectUpdateAccount1",
"xpathNamespaces": null,
"parentEndpointName": null
}
Update Account 2:
{
"httpMethodType": "PUT",
"pagingInitialOffset": 0,
"sequenceNumberForEndpoint": "12",
"uniqueNameForEndPoint": "Update Account 2 (Update Object)",
"curlCommand": null,
"rootPath": null,
"body": {
"bodyFormData": null,
"jsonBody": "{\n"fname": "$plan.fname$",\n"lname": "$plan.lname$",\n"username": "$response.username$",\n"title": "$response.title$",\n"password": "$response.password$",\n"gender": "$response.gender$",\n"country": "$response.country$",\n"status": "$response.status$",\n"email": "[email protected]",\n"person_type": "$response.person_type$",\n"started_on": "$response.started_on$",\n"terminated_on": "$response.terminated_on$",\n"person_no": "$response.person_no$",\n"workphone": "$response.workphone$",\n"job_title": "$response.job_title$",\n"is_manager": "$response.is_manager$",\n"special_user": "$response.special_user$",\n"associations": "$response.associations$",\n"customValues": "$response.customValues$",\n"manager_id": "$response.manager_id$",\n"securityDomain": "$response.securityDomain$",\n"home_domain": "$response.home_domain$",\n"company_id": "$response.company_id$",\n"home_company_id": "$response.home_company_id$",\n"jobtype_id": "$response.jobtype_id$",\n"location_id": "$response.location_id$",\n"timezone_id": "$response.timezone_id$",\n"securityRoles": "$response.securityRoles$"\n}",
"bodyFormat": "raw"
},
"customAuthUrl": null,
"paginationSteps": null,
"responseCode": null,
"resMappingObj": null,
"contextUrl": "/v1/people/username=$response.username$?type=internal",
"pagingSize": 50,
"curlEnabled": false,
"header": {
"SabaCertificate": "$application.SabaCertificate$"
},
"operationType": "Update Account",
"beforeRule": "WebServiceBeforeOperationRule-UpdateAccount2",
"xpathNamespaces": null,
"parentEndpointName": null
}
I replaced " with " now, still didn’t work.
The rules are just for printing.