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.

Script repository

Update target object the approval request is meant for

May 18, 2021 Views: 651

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.


  • $propertyName - Specifies the LDAP name of the property to update.
  • $valueToSet - Specifies the property value to be set.
Edit Remove
$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)

Comments 0
Leave a comment

Got questions?

Support Questions & Answers