Expand my Community achievements bar.

Asset metadata property need to update

Avatar

Level 2

I have a requirement when an asset uploaded/created in DAM need to update some metadata property like if any spaces in title property need to remove and add some value to that property .What would be the best way to achieve this .

7 Replies

Avatar

Level 9

hi @DillipDi 

I suggest leveraging a new workflow launcher, as shown in the image.

Screenshot 2025-03-14 at 12.18.03.pngThe launcher will trigger the processing of your custom workflow, allowing you to incorporate all your custom logic. 

 

As you can see, the launcher has many options that you can use to restrict the type of item and/or event to be processed.

 

WF sample: https://github.com/Adobe-Consulting-Services/acs-aem-samples/blob/master/core/src/main/java/com/adob... 

Avatar

Level 2

Hi @giuseppebag  thanks for ur quick reply so i need to create a workflow with custom logic  and in launcher config it should be node Node type - created so when i create an asset it ll update the property . Will it work for those assets which is already created ?.

Avatar

Level 9

If you require both Created and Modified, you must create two separate launchers.Screenshot 2025-03-14 at 12.49.34.png

Avatar

Administrator

@DillipDi Did you find the suggestions helpful? Please let us know if you need more information. If a response worked, kindly mark it as correct for posterity; alternatively, if you found a solution yourself, we’d appreciate it if you could share it with the community. Thank you!



Kautuk Sahni

Avatar

Community Advisor

Hi @DillipDi ,

1. Workflow Launcher Setup

     - You need to create a workflow launcher for the "Created" event so that when an asset is uploaded, the workflow triggers automatically.
     - If you also need to update metadata when an asset is modified, you will need another launcher for the "Modified" event.

2. Custom Workflow Implementation:
In your workflow model, add a process step that:
     - Reads the dc:title (or relevant metadata property).
     - Removes spaces and applies additional transformations as required.
     - Saves the updated metadata.

3. Existing Assets Handling
     - The launcher will not process already existing assets unless they are modified.
     - If you want to update existing assets, consider running a custom script or bulk workflow that processes assets already in DAM.

Regards,
Amit Vishwakarma

Avatar

Level 5

hi @DillipDi - You can use AEM Workflow or an Event Listener with listener registered to listen to appropriate event. You can check for Asset Manager API as well to consider for bulk modifications need.

Avatar

Administrator

@DillipDi Did you find the suggestions helpful? Please let us know if you need more information. If a response worked, kindly mark it as correct for posterity; alternatively, if you found a solution yourself, we’d appreciate it if you could share it with the community. Thank you!



Kautuk Sahni