My process requires to read certain data from specific Fields: I am storing the Field Id’s in the config file:
I was storing the values in an array inside my process:
Because I am now storing them in Config file, how to convert the array stored inside config to an array being used by the process: I am trying this, but since the vales are stored inside double quotes, its giving an error:
Hi @chauhan.rachita30
Please find below link
Hi @11115 ,
Try this way
you can create in config like this For example arravalue: value1,value2,value3
arr=dict("arravalue").ToString.splt(","c)
Regards,
Arivu
Hope this might help you
1 Like
ppr
(Peter)
February 4, 2022, 4:27pm
#3
when storing array items in config like
ABC,CDE,FGH
then we can use the split approach
when storing array items in config like
{"ABC","CDE","FGH"}
then the string manipulation needs also to handle the { }
when storing array as a JSON string
["ABC","CDE","FGH"]
then we deserialize it
JsonConvert.DeserializeObject(Of String())(YourJSONStringVar)
1 Like