Script repository
The script checks whether one of the specified properties is modified. To execute the script create a business rule triggering Before creating/updating the required type of object. The script returns $true if one of the specified properties is modified.
In the script, the $properties variable specifies names of the properties to check.
$properties = @("givenName", "sn", "description", "department") # TODO: modify me
function IsPropertiesModified($properties)
{
foreach ($propertyName in $properties)
{
if ($Context.IsPropertyModified($propertyName))
{
return $True
}
}
return $False
}
$Context.ConditionIsMet = IsPropertiesModified $properties
Comments 0
You must be signed in to comment.