- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-19-2023 07:14 AM
Hi all,
Can I access information of specific CI in a discovery pattern? I have to create a connection to a CI, but I don't know on which server this CI is running. However, horizontal discovery has already stored this information in the CMDB and therefore it would be great to get this information. Is there a way to get this informations? Host, Ports etc.
Thanks
Thomas
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-20-2023 05:40 AM
If you know in CMDB table data is located, then try to use the HTTP Get Call operation step to extract data on CI types with using the CMDB instance APIs, hope you can retrieve the data you expect.
Reference Product Document:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-27-2023 09:00 AM
Hi Guys,
This is the way to go if you need cmdb/ci information during topdown discovery.
Using GlideRecord scripting in Service Mapping Pat... - ServiceNow Community
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-26-2023 06:34 AM - edited 07-27-2023 12:14 AM
I built a get ci-query inside rest api explorer which worked well. Now, if I make the get call inside the pattern, I get an authentication error.
Just checked the docs but could not find help.
Thanks Thomas
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-26-2023 06:46 AM - edited 07-27-2023 12:13 AM
I would also like to know how I can add further attributes to the result of the query.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-26-2023 08:01 AM - edited 07-26-2023 08:02 AM
You can add the fields under sysparm fields. Refer blow screenshot for sample. Let me know if you need more details.
If my response helped please mark it helpful

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-26-2023 07:53 AM
@TeeKaypA Can you try creating a Basic auth credential for discovery, make sure the servicenow user account has the Rest API read access which you use for Basic Auth. You can test It.
If my response helped please mark it helpful.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-26-2023 08:25 AM
- created a user with needed role
- created basic auth cred with before created user/pw
but i dont get the point how the mid-server should know this credential?
mid server is already running with a user which has the needed role but it does not work like this ...