_undeleteThing

Given the OID of a deleted Thing, restore it -- Function
_undeleteThing (oid) -> Thing Type
oid (optional)
The OID of the Thing to restore
Produces
The restored Thing
You can use this in one of two ways. On the one hand, you can pass a single literal OID as the parameter to this function:
_undeleteThing(.2j39s9d)
This will look through the History, and restore the Thing with that OID to its state just before it was last deleted.
On the other hand, you can pass in a list of OIDs to restore, which you will usually get from a call to _listDeletedThings with the criteria you are looking for:
_listDeletedThings(filter = _model -> _is(My Model)) -> _undeleteThing
Be careful: this second version can restore a lot of things at once, so don't use it casually! This is a power feature, to be used with a lot of care. You should probably use _listDeletedThings to display the Things first, to make sure you'll be restoring what you want.
In large Spaces with a great deal of history, this can be pretty slow, since it has to talk the entire history. (Twice if you are using both _listDeletedThings and _undeleteThing.) It is possible for the page to time out before it completes, but it ought to eventually finish. Please tell us if it seems to be failing to do so.