Search K
Appearance
Appearance
Executes a PowerShell script inline within the workflow.
Use this task to run custom PowerShell logic directly from the workflow designer. The script is written in the built-in code editor and has access to all current workflow variables via the PSData variable. Any value assigned to the outputData variable within the script is captured and stored as the task output. This allows complex data transformations, file operations, or system calls to be performed without leaving the workflow.
| Field | Type | Required | Description |
|---|---|---|---|
| Code Editor | Code Editor (PowerShell) | No | The PowerShell script to execute. All current workflow variables are accessible within the script via PSData. Assign a value to outputData to return a result from the script. |
| Name | Description |
|---|---|
| OutputData | The value assigned to the outputData variable at the end of the script execution. |