You may have noticed that when configuring a Workflow’s Approval, to define it’s approvers via script (calling a $workflow.Parameter), the parameter’s value is always returned empty.
The behavior is by design. The workflowparameter is not available in the execution of the Approver powershell script.
WORKAROUND
Create a custom attribute and access it through $DirObj instead:
© ALL RIGHTS RESERVED. Feedback Terms of Use Privacy Cookie Preference Center