Find your people. Pick a challenge. Ship something real. The CreatorCon Hackathon is coming to the Community Pavilion for one epic night. Every skill level, every role welcome. Join us on May 5th and learn more here.

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

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  ||  10x ServiceNow MVP  ||  ServiceNow Community Leader

Hello Ankur,
Do you have script solution for this?