Rename filename after reading from attachment (GlideSysAttachment)

Nithin21
Tera Expert

Is it possible to rename file in target table when copying using GlideSysAttachment API

 

 

3 REPLIES 3

rahulpandey
Kilo Sage

Hi,

Unfortunately, it doesn't allow renaming or targeted copying. However there is a solution available for this

https://snprotips.com/blog/2016/2/25/understanding-and-using-glideattachment

Ankur Bawiskar
Tera Patron
Tera Patron

Hi Nithin,

you can use before insert business rule on the sys_attachment table and change the file name

BR Condition: table_name is target table

Mark Correct if this solves your issue and also hit Like and Helpful if you find my response worthy based on the impact.
Thanks
Ankur

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

Hello Ankur,
Do you have script solution for this?