Attach a excel sheet or KB link when a change record is created.

Suresh Kumar8
Tera Contributor

Hi Experts,

I have a requirement where an excel should be attached when a change request is raised. It should be applicable for normal and emergency change requests.

Request your valuable inputs and help on this.

 

Thanks

4 REPLIES 4

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @Suresh Kumar8 

Do you want to make Attachment as mandatory or you want a specific excel get attached whenever a user raised Normal or emergency change?

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************

Suresh Kumar8
Tera Contributor

Hi Atulya, Thank you for your response.

Yes, I have a specific excel sheet and that should be attached mandatory(always) whenever a Normal or Emergency change is raised.

 

Thanks

Give a try https://www.servicenow.com/community/developer-forum/how-to-attach-an-attachment-to-a-record-via-a-s...

 

@Suresh Kumar8 

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************

IAmAbhigyaan12
Giga Guru

Hi @Suresh Kumar8 ,

For attaching kb article you can refer to Article AttachKBArticleToChange.

 

For the Excel file there is an API saveResponseBodyAsAttachment(String tableName, String recordSysId, String fileName) OOTB. Which directly attaches the file in a record in ServiceNow.

If my answer solved your issue, please mark my answer as Correct & hit like Helpful

Thanks
Abi