Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Attachment version renaming

Debasis Pati
Tera Guru

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
Tera Patron

@Debasis Pati 

this is for normal form or catalog form?

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x 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

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