Expand my Community achievements bar.

Guidelines for the Responsible Use of Generative AI in the Experience Cloud Community.
SOLVED

Where can we for the asset ID in AEM assets?

Avatar

Level 1

Hi, Is it possible to find an asset ID for the assets in AEM DAM? Can it be retrieved in the metadata export?

Thanks,

 

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

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

 

View solution in original post

4 Replies

Avatar

Correct answer by
Community Advisor

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

 

Avatar

Community Advisor

Hi @Amiee 

 

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

 

narendragandhi_1-1712950439614.png

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

narendragandhi_2-1712950545534.png

 

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

 

narendragandhi_0-1712950387725.png

 

Hope this helps.

 

Thanks

Narendra

Avatar

Community Advisor

@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