Custom metadata for asset with custom namespace | Community
Skip to main content
selvaganesh
New Participant
July 9, 2018
Solved

Custom metadata for asset with custom namespace

  • July 9, 2018
  • 5 replies
  • 3340 views

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.
Best answer by aneetarora

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
New Participant
July 10, 2018

Glad to hear it was resolved.

selvaganesh
New Participant
July 10, 2018

Issue resolved after server restart

selvaganesh
New Participant
July 9, 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

smacdonald2008
New Participant
July 9, 2018

Nice response and helpful pointing to the related docs.

aneetaroraAccepted solution
Employee
July 9, 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