Search K
Appearance
Appearance
The Powershell node allows you to execute a predefined Powershell script within your automation workflow. This node retrieves the script associated with the current task from the server, executes it, and stores the results for use in subsequent nodes.
Use this node to integrate any complex logic, file operations, system calls, or external command executions that are implemented in Powershell, directly within your automation workflows.
This node does not require user-configurable inputs within the workflow configuration interface. The Powershell script is preconfigured on the server side and linked to the task by ID.
Input | Type | Description |
---|---|---|
(None) | - | No inputs are required for this node. The script is retrieved from the server based on the Automation ID and Task ID. |
Output Variable Name | Description |
---|---|
PSData | Contains the output data from the executed Powershell script. This is stored within the task data dictionary under the key PSData . |
Validation:
The node performs task validation but does not require specific user inputs.
Script Retrieval:
Retrieves the Powershell script associated with the task using:GetPowershellScriptAsync("Workflow", a.Id + "_" + taskParameters.taskId)
Execution:
Executes the script using the RunMeshDataPowershell
method.
WFData
parameter to the script.completed
boolean indicates if execution was successful.Error Handling:
taskSuccess = false
and a failure message.PSData
contains the returned data, and the node completes with taskSuccess = true
.⚠️ Important:
WFData
input dictionary.