How to fetch all details regarding an incident/Change number from Snow using Python or Java.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-15-2018 09:47 AM
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.
- Labels:
-
Integrations
-
Scripting and Coding

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-16-2018 11:13 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-16-2018 11:33 AM
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?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-16-2018 01:20 PM
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