How to fetch all details regarding an incident/Change number from Snow using Python or Java.

Abhi9
Kilo Explorer

Hi All,

i want to create a Java/Python code which fetches all details regarding a particular change number from SNOW.

Input:
Change number

Output:
Change start time, change end time, description... (all possible values related to it)

PS:
I am new to programming, please assist with what API can be used for this and what methods can i use.
Any help is appreciate. Thanks.

3 REPLIES 3

sachin_namjoshi
Kilo Patron
Kilo Patron

You can get REST API to get all details based on your query.

Please use REST API explorer to get sample Python code to GET incident details.

Check details below to use REST API

 

https://docs.servicenow.com/bundle/geneva-servicenow-platform/page/integrate/inbound_rest/task/t_GetStartedAccessExplorer.html

 

 

 

 

find_real_file.png

Looks like a good solution, i would try this and let you know if it worked for me. However it requires admin rights, i am not sure if I'll have those. Is there any way i can read table without requiring admin rights?

You don't need admin rights to consume REST API.

You need admin role only to develop REST API.

You can configure user with no role and use that user for authentication to REST API.

 

Regards,

Sachin