Rename the Assets during the upload

bikash_kumar306

13-09-2020

Hi All,

 

We have a requirement to append the BU(Business Unit) with Assets while uploading the asset itself automatically.

e.g i selected abc.jpg while uploading so it should stored in dam with name xyz-abc.jpg(xyz is the BU Name).

 

Please suggest the best way to achieve this.

 

Regards

Bikash Singh

Accepted Solutions (1)

Accepted Solutions (1)

Veena_Vikram

MVP

14-09-2020

Hi Bikas

      One way to do this would be to create a custom workflow launcher to listen to the uploads under your project path and as soon as an upload happens you can re-write the file name, but make sure it doesn't conflict with the DAM Update Asset Workflows.

 

Thanks

Veena ✌

Answers (1)

Answers (1)

Varun_Shakya

MVP

14-09-2020

  • As Veena mentioned use Custom workflow to change the name of asset. which will change the name of the asset.
  • Just adding on to that ,you can disable the Update Asset workflow for a while while uploading the asset once the asset got uploaded you can enable it. This is for avoiding conflict with Update Asset workflow. 
  • You can call "update Asset workflow" from your own custom workflow model, after the step where you are changing the name of asset.
  • For already uploaded assets you can write groovy script to append the BU in your aseets