How to get List or Array of items from Config file

There are some use cases where we need to store some Array values in Config file and get it in our workflow (in List or Array variables).

  • How to store value in Config

As shown in below image store the required list or array values (as comma separated values) in settings sheet.

  • How to retrieve the values and use in Workflow :

To Retrieve the value and store in a List create a variable named ListValue | data type = List(Of String)
Use assign activity as

ListValue = Config(“MyList”).ToString.Split(","c).ToList()

To Retrieve the value and store in a Array create a variable named ArrayValue | data type = Array of String
Use assign activity as

ArrayValue = Config(“MyList”).ToString.Split(","c).ToArray()

Happy Automation !!

Regards,
Rohith

1 Like