Forum Discussion
Gopikrishnan
6 years agoIdeator I
Hi Robert
Yes, you can remove the xClass relationship. small change to your code will work
var rootItem = document.thisItem;
var xClassRelationship = rootItem.getRelationships("Part_xClass");
for (var i = 0; i < xClassRelationship.getItemCount(); i++)
{
var current = xClassRelationship.getItemByIndex(i);
current.setAction('delete');
}
Thank You
Gopikrishnan R