PowerShell notification system variable reference
The following variables are available in the PowerShell script of PowerShell notification systems (i.e., the script behind the Configure PowerShell Script button on the system's Templates tab).
$actionContext
- $actionContext.AccountCorrelated
- $actionContext.BlockedActionsOverviewUrl
The URL of your HelloID portal's blocked entitlement actions overview (View blocked actions).
- $actionContext.Configuration.
Contains the fields and values specified on this system's Configuration tab.
- $actionContext.CorrelationConfiguration
- $actionContext.Data.
- $actionContext.Differences.
Contains the differences between $actionContext.Data. and $actionContext.PreviousData.
- $actionContext.DryRun
true
when the script is running in preview;false
when script is running in production.- $actionContext.EvaluationReportUrl
The URL of your HelloID portal's Evaluation overview.
- $actionContext.PortalIconUrl
The URL of your HelloID portal's Company Icon.
- $actionContext.PreviousData.
- $actionContext.TemplateConfiguration.
Contains the fields and values specified in the current template's input form (under its Custom Configuration button).
$outputContext
- $outputContext.AuditLogs
Contains the messages that will be written to the Audit logs for this script execution. See View audit logs.
- $outputContext.Success
true
if this script execution succeeded;false
if it failed.
$personContext
- $personContext.Contract.
Contains the contract for the current person that triggered this notification event.
- $personContext.Manager.
Contains a person object for the current person's manager.
- $personContext.Person.
Contains a person object for the current person.
- $personContext.Reference.
Contains a reference to the current person's manager.