The Zurich release has arrived! Interested in new features and functionalities? Click here for more

How to correctly post a standard change request via rest api

KeetsScrimalitt
Giga Contributor

Hi,

 

I am testing creating a standard change through the rest api.  I have created one through the api explorer by posting to the change_request table and supplying the sysparam_id of the standard change template to the std_change_producer_version field of the change and some of the other fields that are not automatically filled through the template.  the change is posted like i want, a new record is created and standard change details are all there but it seems to create 2 extra change tasks on top of what already is created through the template

find_real_file.png

 

The bottom two are automatically created when I manually open this standard change through change request catalog.  Those top two look like they created when the change is created as well.  Is there a better way to create a standard change so it does not create these extra two change tasks before applying the template?

3 REPLIES 3

Kieran Anson
Kilo Patron

Hi,

it'll be worth checking to see if a workflow is being attached incorrectly to the standard change and behaving like a normal change. That, or a business rule is creating the additional tasks. The API is working fine as you've indicated however something else is interfering 

KeetsScrimalitt
Giga Contributor

How would i check that? All i have access to is the api explorer.  

You'll need to ask your servicenow administrator