Rename attachment based on variable on record producer

vanshikasin
Tera Contributor

Screenshot 2025-10-25 124151.pngI have a Record Producer that includes a variable of type Attachment. My requirement is that whenever a user uploads a document through this attachment variable, the uploaded file should automatically be renamed based on the name of that specific variable.

Since my Record Producer contains multiple attachment variables, each with a different name, I want each uploaded file to be renamed according to its respective variable name.

2 REPLIES 2

Abbas_5
Tera Sage
Tera Sage

Hello @vanshikasin,

Please refer to the link below:
https://www.servicenow.com/community/developer-forum/rename-attachment-during-upload-in-an-record-pr...

 

If it is helpful, please hit the thumbs-up button and accept the correct solution by referring to this solution in the future. It will be helpful to them.

 

Thanks & Regards,

Abbas Shaik

Ankur Bawiskar
Tera Patron
Tera Patron

@vanshikasin 

what's the requirement of renaming?

you can rename those after record producer is submitted.

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

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