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.

Scripted Rest api for incident create

Ketan Pandey
Tera Expert

I am working a requirement where i want to create a incident and incident task when an request(JSON) received ,

Please suggest  

6 REPLIES 6

Hi @Ketan Pandey 

 

Thank you for the clarification. You can make use of ServiceNow Table REST API to create incident and incident task. Please refer below link for creating incident using REST API explorer.

https://docs.servicenow.com/bundle/tokyo-application-development/page/integrate/inbound-rest/task/t_...

 

For creating Incident task, make use of Table API only in REST API explorer on the table "incident_task". Please refer below snip. Here, in the incident, pass the value of the sys_id of the incident created in the previous REST API call.

 

AmitVerma_0-1705574625214.png

 

AmitVerma_1-1705574642411.png

 

Thanks & Regards

Amit Verma

Thanks and Regards
Amit Verma

Dr Atul G- LNG
Tera Patron

Hi @Ketan Pandey 

 

https://youtu.be/xRqIr5YwAFs

 

My video will help you.

*************************************************************************************************************
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/dratulgrover [ Connect for 1-1 Session]

****************************************************************************************************************
csa #ServiceNow #TechnoFuncational Disclaimer: These videos are from my training batch. These videos did not promote any ServiceNow Sales pitch or marketing. These videos are only for knowledge purposes & basic on my experience & Knowledge. Redistribution or copying of functionality is not ...