I would like to use [array] type in commands, Is someone can explain how user inputs must be formatted for retrieve string list in a foreach loop
Tried with '@("table1","table2", "table3")' without success.
Not sure if this is what you are looking for:
Please try using it like the below:
How is the syntax to pass [array]abcd parameter from Workflow user Inputs?
In my example:
[parameter(Mandatory=$true, HelpMessage="One or more license codes of a Data ONTAP service to be enabled.")]
foreach ($Code in $Codes)
Get-WFALogger -Info -message $($Code)
You will need to mention the array elements without the @ symbol. So in your case, put AA,BB as input instead of '@("AA","BB")'
Damn it seemed i tested this possibilty, that works but I have to remove parenthesis