Forum Discussion

angela's avatar
angela
Catalyst II
6 years ago
Solved

How can we remove NULL relationships when versioning an Item via Method?

Hi community, has somebody a solution for a following use case? I want to version an Item by Method (either Javascript or CSharp). In the new item version some NULL relationships shall be automatic...
  • angela's avatar
    6 years ago

    Oh I was so close...

    singleGoal.setAction("delete"); instead of  myItem.removeRelationship(singleGoal); does the job...