Create a standard change via rest api

CandyDee
Kilo Sage

Afternoon all.

 

Has anyone had any luck in creating a Standard change via rest api servicenow to servicenow

 

I created a standard change template, then on the end point (see below) put the sys id of that template but it fails when trying to create with the error - {"error":{"message":"Standard Change Template not found","detail":""},"status":"failure"}

3 REPLIES 3

RaghavSh
Kilo Patron

Your API should be below:

https://xxxxx.service-now.com/api/sn_chg_rest/change/standard/{standard_change_template_id}

 Replace xxxx with your instance name.

Also your sys_id of template should be from "std_change_record_producer" table.


Please mark the answer correct/helpful accordingly.

 


Raghav
MVP 2023

CandyDee
Kilo Sage

I got this working via this end point, but thank you for resonding and giving me the correct pointer.

 

/api/sn_sc/servicecatalog/items/32e5f2d01bbf1910d978eb53b24bcb24/submit_producer

@CandyDee you can mark the relevant answers correct so that it can help members with same question in future.


Raghav
MVP 2023