Expand my Community achievements bar.

SOLVED

Adding tags to asset on DAM upload

Avatar

Level 6

Is it possible to add specific/default tags automatically to assets on uploading to AEM DAM. If an asset is uploaded to /content/dam/folderA, a tag named folder-a should be automatically be added to that asset and any uploads to /content/dam/folderB, the tag should be folder-b. Is there any OOTB mechanism/tools to achieve this or should I need to extend the OOTB DAM Asset Update workflow to set this automation in place? What would be the ideal solution here?

1 Accepted Solution

Avatar

Correct answer by
Level 6

In case the asset is moved then old metadata value also will be shifted to other location. You have to reprocess the asset to apply the new metadata profile values. 

View solution in original post

6 Replies

Avatar

Level 6

Hi ,

You can use metadata profiles to achieve the same. Pls check the below link :-

 

Metadata profiles | Adobe Experience Manager

 

Thanks,

Somen

Avatar

Level 6

Thank you @somen-sarkar Just would like to understand whether this would work if an asset is moved from one location to another? Let's say I've setted up a metadata profile for one of the DAM folders, added some assets, and I've later got a requirement to move the asset to a different folder which has it's own metadata profile. So in that case I would require my asset tag to be changed to the new one.

Avatar

Correct answer by
Level 6

In case the asset is moved then old metadata value also will be shifted to other location. You have to reprocess the asset to apply the new metadata profile values. 

Avatar

Level 6

Also, I would like to understand would this work all the time as I had some prior experience where the tags wont get properly added with the metadata profile setup.

Avatar

Community Advisor

Hi @jezwn 

 

The correct way to do it in extending the DAM asset update workflow as it takes care of all the other activities. Create a custom step and include the logic of attaching the tags.

 

Hope it helps!

Thanks,
Kiran Vedantam.

Avatar

Community Advisor

Hi @jezwn ,
I am a bit late to this tread, but I am very interested if it got resolved.
The idea that I currently chase is this.
How can we create a workflow or multiple workflows, that attach metadata to assets based of a logic that includes markers within the filename, filetype and the path that the asset gets uploaded to /moved to.

Your example + a bit more.
If asset gets uploaded / moved to
dam/content/department-a/germany AND is filetype:pdf AND filename contains "-CA-"
then
add cq:tags "department:A"; "document-type:catalogue" AND dc:language "de"

 

Has somebody done this before and would be so kind to share the knowledge how to do it?