function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion

Can a trigger fire upon archiving a document in Content??

Searching thyrough the API I don't find any isArchived or similar field on either the ContentDocument or the Content Version object. I would like to run a trigger process when a document is archived in Content. How is the archived status indicated in the document object and how can I access it as a trigger criteria?


If its essentially the same as deleting then I could use an 'After Delete' trigger, but otherwise there is no such thing as an After Archive trigger, so I'm guessing the document has to be updated to some archived status in some way, but the API document goves no indication of how that status is set.