-
Notifications
You must be signed in to change notification settings - Fork 2
Powershell script
Ryan Newington edited this page Apr 12, 2018
·
1 revision
This transform allows you to write a basic powershell script to transform values
Parameter name | Description |
---|---|
File | The path to a PowerShell .ps1 file |
The transform accepts any input type.
The transform accepts multiple input values which are processed according to the script
The transform return type is determined by the script
The PowerShell transform contains a single function called Transform-Values
, with a single parameter called $items
The transform is expected to process the incoming objects and write one or more transformed values to the pipeline.
This very simple example converts all the incoming values to string, and uppercases the values.
function Transform-Values
{
param ($items)
foreach ($item in $items)
{
write-output $item.ToString().ToUpper();
}
}