How to remove repeating group instances in Vantage?

Question

How to remove repeating group instances in Vantage?

Answer

The Remove() method can be used to remove the instances of the repeating group. It can be done in the Custom Activity of the Process Skill. The script sample is the following:

var document = Context.Transaction.Documents[0]; 
var field = document.GetField("Invoice Date"); 
if (field.Value != ""){ 
for (var i = 0; i < field.Instances.length;){ 
field.Instances[i].Remove(); 
}
}

Additional information

AU: Custom Activity

EU: Custom Activity

US: Custom Activity

Was this article helpful?

0 out of 0 found this helpful

Have more questions? Submit a request