Multi Select check box promt type

When I use multi-select prompt type Continua set value to comma delimited string with each choice in quotation mark. I  have problem using this string as a parameter for powershell command .Any work around?When I pass this parameter to FinalBuilder I also have hard time to parse itPlease help

Hi Sergey,

The reason multi-select variables are stored as comma delimited strings is so they can be passed as direct parameters to PowerShell using the format. -myArrayVariable ("a", "b", c")

e.g. With a variable set up like this:



and a PowerShell action set up like this:



And a script WriteMultiSelectTest.ps1:

Param(
[Parameter(Mandatory = $true)]
[string[]]$myArray
)
write-Host "myArray:" $myArray;
foreach ($item in $myArray){
write-Host $item
}


the output is as follows: 
p>

When the multi-select variable is passed to a FinalBuilder action it is converted so that it is split by line break.  e.g



You can then iterate through this using the List Iterator action in FinalBuilder with a newline List Separator.

Hi, Dave
sorry I return back to the topic after a three months
Your solution works if user selects more than one item. If I select one item powershell returns error - Continua does not put quotation if only one option selected.
In addition your screenshot is not what I see - I have only one line in “value” box. I use 1.8.0 version

Hi Serge,

The multiline value box was added in v1.8.0.148 and the PowerShell script works correctly with one item in the latest version. We recommend updaing to the latest version as  we are regularly adding bug fixes. See the version history


Dave, in addition to the problem I mentioned earlier, if you set some values in multiline value box as a default value than when you start the build if you uncheck all values you get default values instead of empty string

Hi Sergey,

Thank you for the additional information - we have now reproduced the both issues. If a single value is specified as the default and you run a quick start build then it is passed to the command line correctly as -myArray ("“value”"""), but if the variable is changed to a single value in the Queue Options dialog then it is passed to the command line as -myArray (value). Also if you uncheck all variables in the Queue Options dialog, the default is used. We will work on a fix for these issues today.