Custom metadata for asset with custom namespace | Community
Skip to main content
selvaganesh
Level 5
Jul 9, 2018 6:15 PM UTC
Solved

Custom metadata for asset with custom namespace

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>

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
aneetaroraAccepted solution
Employee
Jul 9, 2018 7:56 PM UTC

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

5 replies

smacdonald2008
Level 10
Jul 10, 2018 2:45 PM UTC

Glad to hear it was resolved.

Translate
selvaganesh
Level 5
Jul 10, 2018 2:44 PM UTC

Issue resolved after server restart

Translate
selvaganesh
Level 5
Jul 9, 2018 9:32 PM UTC

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

Translate
smacdonald2008
Level 10
Jul 9, 2018 8:03 PM UTC

Nice response and helpful pointing to the related docs.

Translate
aneetaroraAccepted solution
Employee
Jul 9, 2018 7:56 PM UTC

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

Translate