I have a structured set of data held as a string in a variable in this format:
{field1: 123, field2: "ABC"},{field1:345, field2: "DEF"}
I am trying to get this data into a collection. It works fine if I paste the string into the statement:
ClearCollect(colTest, {field1:123, field2:"ABC"},{field1:456, field2: "DEF"})
but does not work if I use a variable to pass the data:
Set(gblTest, [{field1:123, field2:"ABC"},{field1:456, field2: "DEF"}]);
ClearCollect(colTest, gblTest)
Am I missing something simple here?
Thanks.