Hi Aharon,
You can achieve the desired result in a Global Script function via string manipulation. Basically, you have to take the array as input, convert it to a string, append your item and then convert the string back to any array object. Here's a Global Script example for a simple array:
The script code is listed below to make it easier to copy and paste:
var myArrayString = ""; // Initialise array string
// Convert array object to array string
pArray.forEach(function(arrayItem, index) {
myArrayString = myArrayString + arrayItem + ",";
});
myArrayString = myArrayString + pItem; // Add item to end of array string
return myArrayString.split(","); // Re-create array object
Regards,
Mustafa.
