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();
}
}
Comments
0 comments
Article is closed for comments.