10/14/2022 10:00 AM - last edited on 10/14/2022 10:42 AM by Dave
I have a requirement to update the network ID updated on CP42 to a calculated field in Workday. According to Workday tech team, calculated fields can only be updated via a REST connection.
I have the rest connection set up with the following USERUPDATE JSON configured:
{
"actions": {
"UpdateLogin": {
"call": [{
"name": "call1",
"connection": "userAuth",
"url": "https://XXXXXX.com/ccx/api/v1/company2/customObjects/companyLoginId/companLoginId?updateIfExists=tru...",
"httpMethod": "POST",
"httpParams": "{\"id\": \"${user.customproperty41}\",\"XXXXXXXLoginId\":\"${user.customproperty42}\"}",
"httpHeaders": {
"Authorization": "${access_token}"
},
"httpContentType": "application/json",
"successResponses": {
"statusCode": [200]
},
"unsuccessResponses": {
"statusCode": [400, 401, 500, 404, 403, 409]
}
}]
}
}
}
I have a user update rule that when the user CP42 is updated via UI, to trigger a Create Update User Task using the connection and Object as Update Login.
However, when I update the user via the UI, the rule does not getting triggered and I dont see a reference to the rule in the Update history of the user although the value has changed on CP42.
Note - All the conditions of the user update rule are satisifed for the test user. The version of EIC is v2022 (latest release).
Is an Update User task not supported for REST connector?
10/14/2022 10:27 AM
While creating the rule, did you pick the appropriate trigger action? Per your description, you tried updating via UI - In that case, did you update the trigger action as Trigger When user is updated from UI?
-Siva
10/14/2022 10:39 AM
It is configured correctly.
10/14/2022 10:41 AM - edited 10/14/2022 10:42 AM
I see issue in User Update rule.
When you use IN for User Type & Statuskey , You dont have to add () in values section
for example statuskey value column should be '1','Active'
10/14/2022 10:51 AM
I removed the paranthesis for the statuskey and user type but still the rule is not getting triggered for the updates made to CP42 via the UI.
10/14/2022 01:01 PM
After changing the update rule to Advanced config and replacing IN conditions with OR conditions and changing usertype to employeeType the rule is getting triggered.
Now the next issue is that the update user task is not getting picked up although I have the Advanced option configured on the retry to pick up tasktype=9.
Any thoughts on this?
10/14/2022 01:13 PM
You have to run job without adding any filters
10/14/2022 01:21 PM
Without the filters, no pending task is getting picked. We must configure the and at.tasktype=9.
10/14/2022 01:25 PM
Provisioning connection is attached? And automated provisioning ?
10/14/2022 01:27 PM
For writing details back to Workday about the user's email and networ ID, there is no need of security system. It is an API call using the UPDATEUSER JSON. There is no endpoint in Saviynt only a REST connection to Workday.