- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-29-2023 11:21 AM
I'm building an external integration to push inventory data to ServiceNow CMDB and I'd like to pull the list of discovery sources configured on my ServiceNow instance.
They are the "Choices" for the cmdb_ci.discovery_source attribute (see screenshot).
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-29-2023 12:29 PM
Hi,
Yes, you can use the standard Table API and make a call to fetch the choices from the Choice (sys_choice) table.
Regards,
Niklas
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-29-2023 12:29 PM
Hi,
Yes, you can use the standard Table API and make a call to fetch the choices from the Choice (sys_choice) table.
Regards,
Niklas
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-29-2023 12:39 PM
Something like this:
GET https://<YOUR-INSTANCE>.service-now.com/api/now/table/sys_choice?sysparm_query=elementSTARTSWITHdiscovery_source%5EnameSTARTSWITHcmdb_ci%5Einactive%3DFalse
Regards,
Niklas
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-29-2023 01:52 PM
That's exactly what I needed! Thank you Niklas!!