Hello Support Team,
I have two insight objects which are customers and purchases. In customers Object, you can find purchases as an attribute with unlimited cardinality.
What i've been trying to do is when adding a new purchase, that object will be added automatically to one of the Customers object that contains all Purchases objects. I will leave a picture to demonstrate what i'm trying to say.

And i found that insight has already an automation feature. but it was very limited.
I'm trying to write a script and i found documentation but it's emptying the list and only adds the new object.
That's why i want to check How to add a list of objects with groovy or simply append the new object to the pre-existing list please ?
Have a nice day