Use Case
The condition for checking the employee type as 'Outsourced' should be satisfied for the new user or the existing user.
In a workflow, there is a condition where employeetype is Outsourced, it should go to the manager's approval and then to the HR approval whether it is a new user or the existing user.
Pre-requisites
Onboarding /Workflow
Applicable Version(s)
All
Solution
Since before the creation of the user, we don't have the value in the user's table, we need to provide the value of the dynamic attribute and after the creation of the user i.e., while updating the user, we have to provide the user table property. So by giving both conditions, the condition has been satisfied.
Below is the condition we have to keep in the workflow.
dynamicAttributes.get('employeeType') eq 'Outsourced' || user.employeeType == 'Outsourced'
References
https://docs.saviyntcloud.com/bundle/EIC-Admin-v23x/page/Content/Chapter12-Workflows/Workflows.htm