Script repository
The script updates the object, on which the operation awaiting for the result of the approval request was performed. To execute the script, create a business rule or scheduled task configured for the ApprovalRequest object type.
Parameters
$propertyName- the name of the property to update.$valueToSet- the value to set for the property.
$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()
Comments 0
You must be signed in to comment.