The script updates the object for operation over which the approval request was submitted. To execute the script, create a business rule or scheduled task configured for the ApprovalRequest object type.
Parameters:
- $propertyName - Specifies the LDAP name of the property to update.
- $valueToSet - Specifies the property value to be set.
PowerShell
$propertyName = "adm-CustomAttributeBoolean1" # TODO: modify me
$valueToSet = $True # TODO: modify me
# Update target object of approval request
$targetObject = $Context.TargetObject.TargetObject
$targetObject.Put($propertyName, $valueToSet)
$targetObject.SetInfo()