<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: Table API - Get Child Table Fields in Developer forum</title>
    <link>https://www.servicenow.com/community/developer-forum/table-api-get-child-table-fields/m-p/2135497#M792423</link>
    <description>&lt;P&gt;Hi Matt,&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;You might want to give a try with this. &lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;A href="https://instnace.service-now.com/api/now/table/cmdb_ci?sysparm_fields=ref_cmdb_ci_server.classification&amp;amp;sysparm_limit=1" title="https://instnace.service-now.com/api/now/table/cmdb_ci?sysparm_fields=ref_cmdb_ci_server.classification&amp;amp;sysparm_limit=1"&gt;https://instnace.service-now.com/api/now/table/cmdb_ci?sysparm_fields=ref_cmdb_ci_server.classification&amp;amp;sysparm_limit=1&lt;/A&gt; &lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;The idea here is, you can pass the field names of specific tables if you know the already to see the values&lt;/P&gt;&lt;BR /&gt;</description>
    <pubDate>Thu, 23 Feb 2017 23:36:01 GMT</pubDate>
    <dc:creator>srinivasthelu</dc:creator>
    <dc:date>2017-02-23T23:36:01Z</dc:date>
    <item>
      <title>Table API - Get Child Table Fields</title>
      <link>https://www.servicenow.com/community/developer-forum/table-api-get-child-table-fields/m-p/2135495#M792421</link>
      <description>&lt;P&gt;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 '&lt;SPAN style="color: #343d47; font-family: SourceSansPro, 'Helvetica Neue', Arial; font-size: 13px; background-color: #eeeeee;"&gt;kernel_release&lt;/SPAN&gt;', which exists on the 'cmdb_ci_linux_server' table, but not on cmdb_ci. Is there a way to return the field '&lt;SPAN style="color: #343d47; font-family: SourceSansPro, 'Helvetica Neue', Arial; font-size: 13px; background-color: #eeeeee;"&gt;kernel_release&lt;/SPAN&gt;' when it exists when querying cmdb_ci over the table API?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Thu, 23 Feb 2017 23:08:27 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/table-api-get-child-table-fields/m-p/2135495#M792421</guid>
      <dc:creator>mattp</dc:creator>
      <dc:date>2017-02-23T23:08:27Z</dc:date>
    </item>
    <item>
      <title>Re: Table API - Get Child Table Fields</title>
      <link>https://www.servicenow.com/community/developer-forum/table-api-get-child-table-fields/m-p/2135496#M792422</link>
      <description>&lt;P&gt;I do not think so as Table API is out of box , so unless you write some custome web-service , there does not seem to any way to retrieve it from table api if the field does not directly exist in a table&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 23 Feb 2017 23:22:09 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/table-api-get-child-table-fields/m-p/2135496#M792422</guid>
      <dc:creator>rajeevlochan82</dc:creator>
      <dc:date>2017-02-23T23:22:09Z</dc:date>
    </item>
    <item>
      <title>Re: Table API - Get Child Table Fields</title>
      <link>https://www.servicenow.com/community/developer-forum/table-api-get-child-table-fields/m-p/2135497#M792423</link>
      <description>&lt;P&gt;Hi Matt,&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;You might want to give a try with this. &lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;A href="https://instnace.service-now.com/api/now/table/cmdb_ci?sysparm_fields=ref_cmdb_ci_server.classification&amp;amp;sysparm_limit=1" title="https://instnace.service-now.com/api/now/table/cmdb_ci?sysparm_fields=ref_cmdb_ci_server.classification&amp;amp;sysparm_limit=1"&gt;https://instnace.service-now.com/api/now/table/cmdb_ci?sysparm_fields=ref_cmdb_ci_server.classification&amp;amp;sysparm_limit=1&lt;/A&gt; &lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;The idea here is, you can pass the field names of specific tables if you know the already to see the values&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 23 Feb 2017 23:36:01 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/table-api-get-child-table-fields/m-p/2135497#M792423</guid>
      <dc:creator>srinivasthelu</dc:creator>
      <dc:date>2017-02-23T23:36:01Z</dc:date>
    </item>
    <item>
      <title>Re: Table API - Get Child Table Fields</title>
      <link>https://www.servicenow.com/community/developer-forum/table-api-get-child-table-fields/m-p/2135498#M792424</link>
      <description>&lt;P&gt;I've put a little though into this for a use case I haven't gotten to yet, and didn't find an easy solution on the shelf.&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;I think... if you know the end class tables are of interest, you could do something like query each of those tables for the more specific droids you are looking for, then use an exclude filter in cmdb_ci to exclude the records you should already have based on a filter.&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Apparently NOT IN works since sys_class_name is a pick list field.&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;.../api/now/table/cmdb_ci?sysparm_query=sys_class_nameNOT%20INcmdb_ci_server,cmdb_ci_hardware,cmdb_ci_computer&amp;amp;sysparm_fields=sys_class_name&amp;amp;sysparm_limit=1000&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 24 Feb 2017 00:15:44 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/table-api-get-child-table-fields/m-p/2135498#M792424</guid>
      <dc:creator>nosugrefr</dc:creator>
      <dc:date>2017-02-24T00:15:44Z</dc:date>
    </item>
    <item>
      <title>Re: Table API - Get Child Table Fields</title>
      <link>https://www.servicenow.com/community/developer-forum/table-api-get-child-table-fields/m-p/2135499#M792425</link>
      <description>&lt;P&gt;Perfect. &amp;nbsp; Thank you Srinivas. I was looking for exactly that and didn't find it the other day.&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 24 Feb 2017 16:43:03 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/table-api-get-child-table-fields/m-p/2135499#M792425</guid>
      <dc:creator>nosugrefr</dc:creator>
      <dc:date>2017-02-24T16:43:03Z</dc:date>
    </item>
    <item>
      <title>Re: Table API - Get Child Table Fields</title>
      <link>https://www.servicenow.com/community/developer-forum/table-api-get-child-table-fields/m-p/2135500#M792426</link>
      <description>&lt;P&gt;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?&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 24 Feb 2017 17:35:35 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/table-api-get-child-table-fields/m-p/2135500#M792426</guid>
      <dc:creator>mattp</dc:creator>
      <dc:date>2017-02-24T17:35:35Z</dc:date>
    </item>
    <item>
      <title>Re: Table API - Get Child Table Fields</title>
      <link>https://www.servicenow.com/community/developer-forum/table-api-get-child-table-fields/m-p/2135501#M792427</link>
      <description>&lt;P&gt;Hi Matt,&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Glad that helped :-).&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;"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.&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Sun, 26 Feb 2017 22:35:46 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/table-api-get-child-table-fields/m-p/2135501#M792427</guid>
      <dc:creator>srinivasthelu</dc:creator>
      <dc:date>2017-02-26T22:35:46Z</dc:date>
    </item>
    <item>
      <title>Re: Table API - Get Child Table Fields</title>
      <link>https://www.servicenow.com/community/developer-forum/table-api-get-child-table-fields/m-p/2135502#M792428</link>
      <description>&lt;P&gt;Good Information Srinivas !!&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Sun, 26 Feb 2017 23:22:37 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/table-api-get-child-table-fields/m-p/2135502#M792428</guid>
      <dc:creator>rajeevlochan82</dc:creator>
      <dc:date>2017-02-26T23:22:37Z</dc:date>
    </item>
    <item>
      <title>Re: Table API - Get Child Table Fields</title>
      <link>https://www.servicenow.com/community/developer-forum/table-api-get-child-table-fields/m-p/2135503#M792429</link>
      <description>&lt;P&gt;Hi Srinivas,&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;I have a similar requirement but this link is not working. &lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Can you help me out?&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 26 Jun 2017 06:50:31 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/table-api-get-child-table-fields/m-p/2135503#M792429</guid>
      <dc:creator>Rishi18</dc:creator>
      <dc:date>2017-06-26T06:50:31Z</dc:date>
    </item>
    <item>
      <title>Re: Table API - Get Child Table Fields</title>
      <link>https://www.servicenow.com/community/developer-forum/table-api-get-child-table-fields/m-p/2135504#M792430</link>
      <description>&lt;P&gt;Hi Rishi,&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Thats a sample link posted by Sri. You need to replace the instance name with your instance name and your child field.&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 26 Jun 2017 19:55:02 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/table-api-get-child-table-fields/m-p/2135504#M792430</guid>
      <dc:creator>rajeevlochan82</dc:creator>
      <dc:date>2017-06-26T19:55:02Z</dc:date>
    </item>
  </channel>
</rss>

