How to clear relationship on new Revision?

Former Member
Former Member
I have an ItemType A with a RelationShip to another ItemType B. I want all relations to stay within a Revision. But when a new Revision is created for ItemType A I do not want the old relations to be carried over to the new Revision. Is there any "build in" feature in  Aras to handle this or must i do it with code? My idea was to clear the relations on a server event, but I can not find any event "onRevision". I can only find onVersion but that is not called when I go to a new Revision. Any suggestions?
Parents
  • Former Member
    Former Member
    Great! I was afraid that the new Revision had not been created yet when the onAfterVersion was called. This is exactly what I want, I just compare that the oldVer.Major_rev != newVer.Major_rev are then removes the relations. Thanks!
Reply
  • Former Member
    Former Member
    Great! I was afraid that the new Revision had not been created yet when the onAfterVersion was called. This is exactly what I want, I just compare that the oldVer.Major_rev != newVer.Major_rev are then removes the relations. Thanks!
Children
No Data