Automate Ticket Creation

Joe Sweeney
Mega Explorer

New to API dev for ServiceNow - though I've done it for Version1. I looked through the documentation but have no idea where to start. We want to write an app that automates the creation of these tickets. I'm hoping someone can point me in the right direction.

We create change tickets for a daily backend update of our databases. The Thursday process is for updating our production db and has six tasks attached. The other days of the week we update our lower environments and do not need any tasks attached.

We are looking for a way to automate this process.

Attachment CHG0062293.PNG shows the fields we need to fill when creating all change tickets.

Attachment CHG0062134-1.PNG shows the tasks we need to create for the Thursday tickets.

Attachment CHG0062134-2.PNG shows one of the tasks.

Thanks!

 

2 REPLIES 2

Sean Walters
Tera Expert

Hi Joe, 

Have you tired using the REST API Explorer. 

It can help you to create what you prepare your request. 

REST API Explorer anatomy

https://developer.servicenow.com/dev.do#!/learn/learning-plans/quebec/servicenow_application_developer/app_store_learnv2_rest_quebec_introduction_to_the_rest_api_explorer

If you select create a record, select the change table. Scroll down you can add your fields. 

You can then extract the script from this page. 

Hope that helps.

https://developer.servicenow.com/dev.do#!/learn/learning-plans/quebec/servicenow_application_developer/app_store_learnv2_rest_quebec_introduction_to_the_rest_api_explorer

Thank you, but I have no idea as to the table structure.