Quantcast
Channel: ServiceNow Community - Incident Management
Viewing all articles
Browse latest Browse all 165

How to get all CI's and the categories that they belong to?

$
0
0

I am trying to get a list of all available CI's and the categories that each one belongs to (in incidents)
I can get all CI's using ODBC/OpenQuery:

SELECT *
FROM OPENQUERY(sndev,
'
select
name,
category,
subcategory,
short_description
from cmdb_ci
')

What I can't figure out how to get is the category (or categories) that each CI is tied to.
The cmdb_ci table has 'category' and 'subcategory' columns. I can see them when looking at this table via Query Builder but the result when running that query is all NULL for category and subcategory.

read more


Viewing all articles
Browse latest Browse all 165

Trending Articles