Expand my Community achievements bar.

Add an asset into a Batch Set Preset based on a metadata property values

Avatar

Level 2

I wonder if there is a way to add an asset to a Batch Set Preset but instead of matching a naming convention, to match it based on a metadata property.

 

Let's say that I have Assets with a metadata property which is an array of Strings:

 

jcr:content/metadata/dam:myCodes

 

And when I upload images that has this metadata property with values:

 

 my_testing_asset_one.png

 

3025070-100
7002011-369
6036221-045

 

 

 my_testing_asset_two.jpeg

 

3025070-100

 

 

 my_testing_asset_three.tif

 

7002011-369
5234620-136

 

 

It gets assigned to a Batch Set per one of myCode, and each site in Scene7 as follows will display:

 

https://company.scene7.com/is/image/projectName/3025070-100_is?req=imageset

projectName/my_testing_asset_one, projectName/my_testing_asset_two

 

https://company.scene7.com/is/image/projectName/7002011-369_is?req=imageset

projectName/my_testing_asset_one, projectName/my_testing_asset_three

 

https://company.scene7.com/is/image/projectName/6036221-045_is?req=imageset

projectName/my_testing_asset_one

 

https://company.scene7.com/is/image/projectName/5234620-136_is?req=imageset

projectName/my_testing_asset_three

 

3 Replies

Avatar

Administrator

@konstantyn_diachenko @aanchal-sikka @MukeshYadav_ @sherinregi Would it be possible for you to take a look at this question and share your thoughts? Your input would be very helpful.



Kautuk Sahni

Avatar

Community Advisor

Hi @pabloram23 

i am not aware of any OOTB feature that you can leverage here. One option you can try out is to use dynamic media classic API's where you can search assets based on the custom metadata and then try adding to a preset batch

https://github.com/AdobeDocs/experience-manager-64.en/blob/main/help/sites-administering/scene7.md

https://experienceleague.adobe.com/en/docs/experience-manager-learn/assets/dynamic-media/tutorials/i...