Query to identify the assets with lastmodified date dam:assetState as processing | Community
Skip to main content
samsundar23
Level 4
October 31, 2022
Solved

Query to identify the assets with lastmodified date dam:assetState as processing

  • October 31, 2022
  • 1 reply
  • 560 views

I'm using AEM 6.5.10.

We are trying to identify the list of images in assets which has dam:assetState as processing.

 

Can someone help with the query to identify the assets list which has as dam:assetState as processing and also bring on the jcr:lastModified property value along with it.

 

Thanks in advance !

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by krati_garg

@samsundar23 

Please try this:

JCR:

path=/content/dam
type=dam:AssetContent
property=dam:assetState
property.value=processing

 

SQL2:
SELECT * FROM [dam:AssetContent] AS node
WHERE ISDESCENDANTNODE(node, "/content/dam") and [dam:assetState] = "processing"

You can iterate the results for jcr:lastModified of each of the asset.

1 reply

krati_garg
Adobe Employee
krati_gargAdobe EmployeeAccepted solution
Adobe Employee
October 31, 2022

@samsundar23 

Please try this:

JCR:

path=/content/dam
type=dam:AssetContent
property=dam:assetState
property.value=processing

 

SQL2:
SELECT * FROM [dam:AssetContent] AS node
WHERE ISDESCENDANTNODE(node, "/content/dam") and [dam:assetState] = "processing"

You can iterate the results for jcr:lastModified of each of the asset.