Custom metadata for asset with custom namespace | Community
Skip to main content
selvaganesh
Level 5
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

aneetaroraAdobe EmployeeAccepted solution
Adobe 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

smacdonald2008
Level 10
July 9, 2018

Nice response and helpful pointing to the related docs.

selvaganesh
Level 5
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

selvaganesh
Level 5
July 10, 2018

Issue resolved after server restart

smacdonald2008
Level 10
July 10, 2018

Glad to hear it was resolved.