We're reclaiming inactive PDIs to keep them available for active builders. Learn what's changing, who's affected, and how to protect your work. Read More

Attachment version renaming

Debasis Pati
Kilo Sage

While uploading a attachment in submission record if a attachment is already there and a same named attachement is getting attached it should rename the new attached document as a version.

For example Test.txt is there again if i attach Test.txt it should get attached and renamed as Test_V1.txt

so now my record should have 2 attachment records as Test.txt,Test_V1.txt

@Ankur Bawiskar Can you help in this.


Regards,
Debasis

14 REPLIES 14

Ankur Bawiskar
Tera Patron

@Debasis Pati 

this is for normal form or catalog form?

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 10x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

Hello Ankur this is for custom form not catalog form and the name i thinks needs to be altered in attachment table.

Regards,
Debasis

Not applicable

Hi @Debasis Pati You can use before BR and change the file name.

can you help with the script i am trying out my script doesn't work