Solved
hi @user1576,
I would try one of the following approaches:
Event-driven via Adobe I/O Events for AEM Assets: Subscribe to assets events such as “asset ready” to receive payloads that include repository metadata like dam:sha1, then query AEM for assets with the same hash; if duplicates are found, send email via a service of choice. Reference: here
AEM-side listener after processing: Implement a listener that reacts once the asset state is processed (for example, checking jcr:content/dam:assetState), look up duplicates by dam:sha1, and send an email using the Day CQ Mail Service configuration.
To check for duplicates, you can use the SHA-1 fingerprint stored at jcr:content/metadata/dam:sha1. By querying other assets that share this SHA-1 value, you can identify potential duplicates regardless of their filename or path. In other words, you can run a query on the dam:Asset nodes where dam:sha1 matches the hash of the current asset. Any additional results returned by the query can be considered duplicates.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.