IsUpdate is a constant that can be used in conditional expressions to determine if the user record already exists and will be updated.
In the example below, IsUpdate sets the employee type when an employee record is updated:
WHEN IsUpdate
THEN [source-object]
Here are a few examples of IsUpdate being used.
Ignore the Container mapping if this is an update:
WHEN IsUpdate
WHEN Ignore
If the user is being updated, their current container will not be changed.
Move an active user into a specific org unit:
WHEN IsUpdate && Employment.EmployeeStatusCode == 'A'
WHEN IsUpdate && Employment.EmployeeStatus == 'Active'
THEN OU=Active
If the user is being updated and the employee is active, then the user will be moved into the Active org unit.
Move an terminated user into a specific org unit:
WHEN IsUpdate && Employment.EmployeeStatusCode == 'T'
WHEN IsUpdate && Employment.EmployeeStatus == 'Terminated'
THEN OU=Terminated
If the user is being updated and the employee is terminated, then the user will be moved into the Terminated org unit
Move an employee into a specific org unit based on their [source-object] :
WHEN IsUpdate
THEN $"OU={OrgLevel1.Description}"
THEN $"OU={Employment.Company}"
If the user is being updated, move the user into the matching org unit based on their [source-object] .
Comments
0 comments
Please sign in to leave a comment.