sql2 - To get last 30 days assets
Hi,
I wanna get the assets(i.e. using sql2) which is recently uploaded on dam.
Hi,
I wanna get the assets(i.e. using sql2) which is recently uploaded on dam.
Hi @james_aem, I think you can try SQL2 query like below - of course you will need to set approprite date range depending on your needs/requirements.
SELECT * FROM [dam:Asset] AS asset WHERE ISDESCENDANTNODE([/content/dam]) AND asset.[jcr:created] >= CAST('2021-12-18T00:00:00.000Z' AS DATE) AND asset.[jcr:created] <= CAST('2022-01-18T00:00:00.000Z' AS DATE) Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.