+ Start a Discussion
HTANIRSHTANIRS 

update attachment name with version

Hi Friends,

I want to update the attachments name with versions.
I have a pdf templates to attach in account object. When I update the record and click on PDF template it is again inserting with same name. I want to insert with same name with some versioning like testv1, samplev1.
How can I do this. I have class to attach the template in account. Whether I can modify the class or trigger is required.

Kindly need inputs to achieve this requirement.

Thanks. 
Tad Aalgaard 3Tad Aalgaard 3
You might be able to do this with a before update trigger on the attachment object (unless you have upgraded to files and are using content and content versions).