Expand my Community achievements bar.

Radically easy to access on brand approved content for distribution and omnichannel performant delivery. AEM Assets Content Hub and Dynamic Media with OpenAPI capabilities is now GA.
SOLVED

Is there a way to search an asset based on the metadata schema that the parent folder / root folder is mapped to ?

Avatar

Level 2

Hi Team,

I have a requirement like "to search for an asset based on the metadata schema that the parent folder or root folder is mapped to.

Please help me to resolve this issue.

 

Thank You,

Kaibalya Jena

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hello @KaibalyaJena_123 

 

As you mentioned, metadata schemas are applied on folders. The information isn't available on Asset itself.

 

One easy way might be to add a Hidden field in metadata schema and profile unique value for each schema.

 

Now when assets are uploaded into folders, they would get these unique values based on applicable schemas.

 

You could now execute search based on these values.


Aanchal Sikka

View solution in original post

1 Reply

Avatar

Correct answer by
Community Advisor

Hello @KaibalyaJena_123 

 

As you mentioned, metadata schemas are applied on folders. The information isn't available on Asset itself.

 

One easy way might be to add a Hidden field in metadata schema and profile unique value for each schema.

 

Now when assets are uploaded into folders, they would get these unique values based on applicable schemas.

 

You could now execute search based on these values.


Aanchal Sikka