Script repository

Check whether one of the specified properties is modified

Updated on: Jan 18, 2026, Views: 3619

Property validation

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.

    Got questions?

    Support Questions & Answers

    We use cookies to improve your experience.
    By your continued use of this site you accept such use.
    For more details please see our privacy policy and cookies policy.