- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-23-2017 03:08 PM
We have a use case where we want to query the cmdb_ci table for specific classes, and return fields from those classes that aren't on the base cmdb_ci table. An example would be 'kernel_release', which exists on the 'cmdb_ci_linux_server' table, but not on cmdb_ci. Is there a way to return the field 'kernel_release' when it exists when querying cmdb_ci over the table API?
Thank you!
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-23-2017 03:36 PM
Hi Matt,
You might want to give a try with this.
The idea here is, you can pass the field names of specific tables if you know the already to see the values
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-24-2017 09:35 AM
thanks, that works! sysparm_fields=ref_cmdb_ci_server.classification was the key. Just so I understand, where does the 'ref_' beefore cmdb_ci come from, or why is it needed?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-26-2017 02:35 PM
Hi Matt,
Glad that helped :-).
"ref_ " is to let the system know that you are looking for fields of extended tables. This feature is added(I think)with Geneva and comes in handy in scenarios like this.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-25-2017 11:50 PM
Hi Srinivas,
I have a similar requirement but this link is not working.
Can you help me out?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-26-2017 03:22 PM
Good Information Srinivas !!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-26-2017 12:55 PM
Hi Rishi,
Thats a sample link posted by Sri. You need to replace the instance name with your instance name and your child field.