Does anyone have a suggestion for looping through about 50 workunit variables, doing something to each of them and then re-assigning the new value to the same variable?
This is my situation - variable example:
Name: Value:
ExampleVariable TESTDATA
The 50 variables are in utf-16 encoding. I need to put the values into ISO-8895-1 encoding.
What I am doing now is:
1. For Loop node, listing my 50 variables as an array to loop through
2. Custom Activity node that is doing the ISO encoding
3. Assign node that is attempting to take the newly encoded value and updating the old:
if (INPUTS_iterationNumber = 1) {
ExampleVariable = newstr;

Is this the best way to do this? I am struggling on how best to get the original value to be the newly encoded value. My Assign node has a JS variable that has 50 if/then's and it just seems like it could be more efficient.
Thank you for any help! Chris