08-30-2012 11:11 AM
Hi,
I want to create a purge of deleted documents for more than 2 months after the last modification date.
Can we write a NXQL query like this :
SELECT * FROM Document WHERE ecm: currentLifeCycleState = 'deleted' AND (dc: modified + INTERVAL '2 month') < TIMESTAMP '2012-08-30 14:00:00'
Or another method?
thank you
08-30-2012 01:25 PM
Hi,
The better is to use an automation chain and fetch by query documents to remove definitely.
So here is the request I would put into the Fetch > Query operation (becarefule no space between "ecm and :" and "dc and :):
SELECT * FROM Document WHERE ecm:currentLifeCycleState = 'deleted' AND dc:modified < TIMESTAMP '@{CurrentDate.months(2).format("yyyy-MM-dd HH:mm:ss")'
09-03-2012 11:59 AM
NXQL does not have date interval arithmetic. It could be added though.
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.