I'm trying to find the list of documents deleted using DQL with few conditions, but I need to find the list that belongs to only a particular cabinet. I'm not able to frame query using audittrail with r_object_id of dm_cabinet.
Maybe something like this?
select distinct a.r_object_id, a.event_name, a.user_name, a.audited_obj_id, a.time_stamp from dm_audittrail a, dm_document d where a.event_name='dm_destroy' and a.time_stamp > date(today) and (a.current_state = 'Effective' or a.current_state='Approved') and d.i_cabinet_id='0c0033xxxx...';
Please help me.
When you delete object in Documentum then it is really deleted (at least its metadata, document content persists until
dm_cleanjob is executed). There is no trash feature like in other DMS systems (like Nuxeo for example). This is why the SELECT query fromdm_audittrailwith join ondm_documentcannot return expected information.But there is a way how to do it if you also log dm_link events into audit trail. Then you can use query like this one:
It finds information about the deleted document from audit trail and joins it with information about linking of that document also from audit trail which contains parent folder ID in
id_1.But keep in mind that when you delete documents also with folders then this will not work using this one query and you have to traverse audit trail also for deleted folders.