Where can we for the asset ID in AEM assets? | Community
Skip to main content
Best answer by Harwinder-singh

@amiee  asset.getID() returns the jcr:uuid for the asset. If that is something that you need, you can use this method to get this value.

Since this uuid is set at the asset node itself and not at the metadata node, I am not sure if you can retrieve it from OOTB metadata export. You can however write your own custom logic to retrieve the IDs for assets.

 

https://javadoc.io/static/com.adobe.aem/uber-jar/6.3.3.6/com/day/cq/dam/api/Asset.html#getID--

 

3 replies

Shashi_Mulugu
New Participant
April 13, 2024

@amiee , Did you find the suggestions from users helpful? Please let us know if more information is required. Otherwise, please mark the answer as correct for posterity. If you have found out solution yourself, please share it with the community

narendragandhi
New Participant
April 12, 2024

Hi @amiee 

 

You can get the Asset ID by generating the reports under Tools > Assets > Reports

 

There are a number of options on what kind of report you want to generate. Once you select the type of report -

 

The next screen allows to add custom columns, in that you can select the jcr:UUID for Asset ID column and generate report.

 

 

Hope this helps.

 

Thanks

Narendra

New Participant
February 4, 2025

Hello, Is this menu from the cloud instance of AEM? If so, what level of access is needed to see this menu?

Harwinder-singh
Harwinder-singhAccepted solution
New Participant
April 12, 2024

@amiee  asset.getID() returns the jcr:uuid for the asset. If that is something that you need, you can use this method to get this value.

Since this uuid is set at the asset node itself and not at the metadata node, I am not sure if you can retrieve it from OOTB metadata export. You can however write your own custom logic to retrieve the IDs for assets.

 

https://javadoc.io/static/com.adobe.aem/uber-jar/6.3.3.6/com/day/cq/dam/api/Asset.html#getID--

 

AmieeAuthor
New Participant
April 12, 2024

Thanks Harwinder for your response.