Custom metadata for asset with custom namespace

selvaganesh 09-07-2018

I have created a new custom namespace for the asset metadata.  I am able to add the custom metadata to the asset. But while retrieving using asset,getMetadata it comes as ns2:<customname>

Accepted Solutions (1)

Accepted Solutions (1)

aneeta45259594 09-07-2018

Hi Ganesh,

In order for the custom namespace to be saved, the namespace has to be registered in AEM. Please look at the document -> Namespace | Content Management under the heading "Register namespace via CRX Console" and follow the steps.

Regards,

Aneet Arora

Answers (4)

Answers (4)

selvaganesh 09-07-2018

It is already added in namespace editor interface. Adding the custom metadata is not an issue. Retrieving it using asset.getMetadata() is causing the issue