ServiceNow API to retrieve Change Information

nileshc
Mega Contributor

Hi Team,

 

I am new to ServiceNow. I am looking for solution (snow API) which will provide list of all Normal Changes scheduled for next day. Also need below information about those changes.

 

  • Change Id
  • Short Description
  •  Configuration Item
  • Environment
  • Planned start date
  • Planned end date

 

Kindly help.

 

Regards,

Nilesh

1 REPLY 1

kamlesh kjmar
Mega Sage
Mega Sage

Hi @nileshc ,

 

Below is the API you can use for your use case, just replace the InstanceID in the url with your instance name :

 

https://InstanceID.service-now.com/api/now/table/change_request?sysparm_query=type%3Dnormal%5Estart_dateONTomorrow%40javascript%3Ags.beginningOfTomorrow()%40javascript%3Ags.endOfTomorrow()&sysparm_display_value=true&sysparm_fields=number%2Cshort_description%2Ccmdb_ci%2Cstart_date%2Cend_date

 

I Hope this helps.

 

Please mark this helpful if this helps and Accept the solution if this solves your issue.

 

Regards,

Kamlesh