Is there any way to, within a workflow, restore a deleted ComposeRecord?
I have built a module where records link to “sub-records” in other modules. I have implemented a rolling delete to delete the sub-records when the main record is deleted, and now I would like to implement the same with Undelete.
So far my best guess was to clear the deletedAt and deletedBy fields on the record, but this fails as both are read-only.
I know that I could creating a new copy of the sub-record and link the main record to that, but I’d like to attempt to retain the revision history of the original sub-record.