Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

Custom metadata for asset with custom namespace

Avatar

Level 6

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>

1 Accepted Solution

Avatar

Correct answer by
Level 5

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

View solution in original post

5 Replies

Avatar

Correct answer by
Level 5

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

Avatar

Level 10

Nice response and helpful pointing to the related docs.

Avatar

Level 6

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

Avatar

Level 6

Issue resolved after server restart