Hey. So, I have a workflow that loops through a two-dimensional array created from a csvReadarray step. Within the loop, I have an “execute script sandboxed” step which takes the string stored in one of the columns of the current row and removes all of the spaces from the string with the following javascript:
var aphone=${thing[2]};
return aphone.replaceAll(' ', '');
However, when this code executes, I get this error:
However, when I change the step to just regular Execute Script, the step executes successfully without a problem:
I find this…strange… as I am able to use the “replace” string method successfully within an execute script sandbox step, but not the replaceAll method?