Forum Discussion

dkinsley's avatar
dkinsley
Ideator I
6 years ago
Solved

Back up revision level and add "Obsolete" to the document description field

I have a C# server method that creates a new revision of a document then after some edits, moves the document to the "obsolete" state (not CN controlled). I would like to add script that will ...
  • AngelaIp's avatar
    AngelaIp
    6 years ago

    That doesn´t look like one of the default transitions handlers.

    You could remove the 'version' function block to prevent the new revisions:

       .Version((sourceItem, versionItem) => { versionItem.ItemNumber = sourceItem.ItemNumber; versionItem.RevSequence = sourceItem.RevSequence; versionItem.Revision = sourceItem.Revision; versionItem.Classification = sourceItem.Classification; });

    But I wonder if this Obsolete handler works at all? It doesn´t promote anything to Obsolete, but only versions the items.