since ‎06-11-2020
‎25-02-2021
chandrareddy
Level 1
How to Delete DAM asset which is having specific property in AEM using servelt or groovy script?
Avatar

chandrareddy

chandrareddy
- Adobe Experience Manager
Hi Team, Can someone suggest how to delete DAM documents which is having particular property either servlet or groovy script or any other methods?

Views

161

Likes

0

Replies

1
Re: Query to find list of pages with a particular property
Avatar

chandrareddy

chandrareddy
- Adobe Experience Manager
https://gist.github.com/floriankraft/8b3720464318cd5cd9e2 helped me to find the required list. SELECT * FROM [nt:unstructured] AS node WHERE ISDESCENDANTNODE(node, "/search/in/path") AND PROPERTY(node.[propertyName], "DATE") LIKE "%" Thanks a lot.

Views

96

Likes

0

Replies

0
Re: Query to find list of pages with a particular property
Avatar

chandrareddy

chandrareddy
- Adobe Experience Manager
thanks for reply kiran. property.Type is String for all docs around 5k. only few may be 10 to 20 mistakenly created with property.Type=Long, need to identify those using qury

Views

184

Likes

0

Replies

0
Re: Query to find list of pages with a particular property
Avatar

chandrareddy

chandrareddy
- Adobe Experience Manager
Thanks for the reply sanket. This is fetching all records.property.Type=Long is not working it seems.

Views

193

Likes

0

Replies

0
Query to find list of pages with a particular property
Avatar

chandrareddy

chandrareddy
- Adobe Experience Manager
Hi Team,I am trying to get list of documents with below property (ingredion:productId). I able to fetch the properties but I need only the properties with type Long.How to query that, can someone suggest. Below is the query i am using to fetch the records.But I want only the records whose property is property type is long.I tried property.Type=Long but still all records are coming. path=/content/dam/xyztype=dam:Asset1_property=jcr:content/metadata/ingredion:productIds Thanks,Chandra

Views

270

Likes

0

Replies

7