01-08-2023 01:19 PM - edited 01-09-2023 09:03 AM
Requirement is to writeback email from any Saviynt's attribute to Workday. The workday endpoint is a REST endpoint because the email is being written back to a custom object on Workday which cannot be updated through SOAP API.
The user's email needs to be written back in Workday. The email is getting updated in Saviynt from a different source and the same should be provisioned to WD.
In order to achieve this, we need to follow the standard approach of creating a User update rule and under the Action section we need to ensure to select 'Update Login' option
This same value of 'Update Login' is to be used in our UpdateUserJSON under call name.
The value is case sensitive. Below is a reference of the json to be used.
{
"actions": {
"Update Login": {
"call": [
{
"name": "Update Login",
"callOrder": 0,
"connection": "acctAuth",
"url": "https://abc.workday.com/ccx/api/staffing/v2/TEST/workers/Employee_ID=${user.username}",
"httpMethod": "GET"
},
{
"name": "Update Login",
"callOrder": 1,
"connection": "acctAuth",
"url": "https://abc.workday.com/ccx/api/staffing/v2/TEST/workers/${response.'Update Login'.message.id}/workContactInformationChanges",
"httpMethod": "POST"
}
}
}
}
Note: In case of multiple calls, the response will be used of the immediate previous call ${response.'Update Login'.message.id}/