Select Multiple Item

How to pass countries separated by comma present in excel file(Config.xlsx) in select Multiple Items in UiPath?
Input from config file row named Countries -
Austria,Belgium,France,Germany,Italy,Luxembourg,Netherland,Portugal,Spain,Switzerland

image

Hi @suyash.saxena

Welcome to uipath community

You can try like this

{"Austria","Belgium","France","Germany","Italy","Luxembourg","Netherland","Portugal","Spain","Switzerland"}

image

Regards
Gokul

Thanks @Gokul001 for the help, but my input is dynamic and it is coming from config.xlsx file.

Hi @suyash.saxena ,

Provide all the Country names in excel file.
Create a variable in string Array & call the row name from config file.

Try this It will work

HI @suyash.saxena

Try with this expression

Split(yourString,",").ToArray

image

Regards
Gokul

Hi,

Can you try to set the following expression?

in_Config("Countries").ToString.Split(","c)

Regards,

1 Like

Hi @suyash.saxena

Pass the Countries Separated by Comma in the Config File Like below.

image

And use the Config Variable and Convert to String and make a Split and Pass over the Multiple items field like
Config(“Countries”).toString.Split(new char(){ ","c }, StringSplitOptions.RemoveEmptyEntries)

Regards