Skip to main content
Harwinder-singh
Harwinder-singhAccepted solution
Community Advisor
Apr 12, 2024 7:19 PM UTC

@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--

 

5 replies

Harwinder-singh
Community Advisor
Harwinder-singhCommunity AdvisorAccepted solution
Community Advisor
Apr 12, 2024 7:19 PM UTC

@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--

 

Translate
AmieeAuthor
Apr 12, 2024 7:24 PM UTC

Thanks Harwinder for your response. 

Translate
narendragandhi
Community Advisor
Community Advisor
Apr 12, 2024 7:37 PM UTC

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

Translate
Level 2
Feb 4, 2025 10:39 PM UTC

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

Translate
Shashi_Mulugu
Community Advisor and User Group Leader
Community Advisor and User Group Leader
Apr 13, 2024 3:37 AM UTC

@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

Translate