IsUpdate Constant

IsUpdate is a constant that can be used in conditional expressions to determine if the user record already exists and will be updated.

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.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.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 org-unit 1 value:
WHEN IsUpdate
THEN $"OU={CostCentre1.Level1.Description}"
If the user is being updated, move the user into the matching org unit based on their Cost Centre 1 - Level 1 value.

Was this article helpful?

Comments

0 comments

Please sign in to leave a comment.