Script repository

Update target object the approval request is meant for

Updated on: Jan 18, 2026, Views: 3326

Approval requests

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.

    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.