<?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: CMDB Query Builder - Technical Service Offering in Common Service Data Model forum</title>
    <link>https://www.servicenow.com/community/common-service-data-model-forum/cmdb-query-builder-technical-service-offering/m-p/2543176#M4707</link>
    <description>&lt;P&gt;This is just how the Dynamic CI Groups/CMDB Groups work.&amp;nbsp; They take ALL of the CIs returned in the Saved Query.&amp;nbsp; For CMDB Groups created with standard filters (which is a common use case) you look for a specific set of CIs of a specified class that meet certain conditions.&amp;nbsp; However, if you use a Saved Query to populate your CMDB Group, then it will include all of the CIs that are in that query.&lt;/P&gt;</description>
    <pubDate>Mon, 24 Apr 2023 14:16:35 GMT</pubDate>
    <dc:creator>CMDB Whisperer</dc:creator>
    <dc:date>2023-04-24T14:16:35Z</dc:date>
    <item>
      <title>CMDB Query Builder - Technical Service Offering</title>
      <link>https://www.servicenow.com/community/common-service-data-model-forum/cmdb-query-builder-technical-service-offering/m-p/2529977#M4646</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am trying to use the CMDB Query builder to create a dynamic query that can be used in a Technical Service Offering.&lt;/P&gt;&lt;P&gt;The logic includes 2 CI classes; Server and MSFT SQL Instance. I am trying to create Technical service offerings for the the different environments and apply to the DB Instance. eg SQL Prod, SQL Test, SQL Dev. These can then have different criticality, support team, etc...&lt;/P&gt;&lt;P&gt;The logic relies on the environment of the server. If the server has a production environment then so will the database instance that runs on that server...&lt;/P&gt;&lt;P&gt;I have created the query however the results cannot be configured to exclude the servers and so cannot be used in in a dynamic CI group. The servers are part of another service offering and are supported by windows platform teams so I dont want to include them. I only want the instances.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The server is required for the logic to work in the query but should not be in the output, I only want the DB instances.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Apr 2023 10:37:18 GMT</pubDate>
      <guid>https://www.servicenow.com/community/common-service-data-model-forum/cmdb-query-builder-technical-service-offering/m-p/2529977#M4646</guid>
      <dc:creator>CW7</dc:creator>
      <dc:date>2023-04-10T10:37:18Z</dc:date>
    </item>
    <item>
      <title>Re: CMDB Query Builder - Technical Service Offering</title>
      <link>https://www.servicenow.com/community/common-service-data-model-forum/cmdb-query-builder-technical-service-offering/m-p/2534268#M4654</link>
      <description>&lt;P&gt;Try using something like&amp;nbsp;&lt;STRONG&gt;msft sql instance that runs on server whose environment is PRD&lt;/STRONG&gt; in the natural language query box at the top of the CMDB Query Builder form. Be sure the rest of the pane is empty. Click the &lt;STRONG&gt;Search&lt;/STRONG&gt; button, then click the &lt;STRONG&gt;Run&lt;/STRONG&gt; button.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Apr 2023 22:23:07 GMT</pubDate>
      <guid>https://www.servicenow.com/community/common-service-data-model-forum/cmdb-query-builder-technical-service-offering/m-p/2534268#M4654</guid>
      <dc:creator>SN Arch Guy</dc:creator>
      <dc:date>2023-04-13T22:23:07Z</dc:date>
    </item>
    <item>
      <title>Re: CMDB Query Builder - Technical Service Offering</title>
      <link>https://www.servicenow.com/community/common-service-data-model-forum/cmdb-query-builder-technical-service-offering/m-p/2534582#M4655</link>
      <description>&lt;P&gt;The &lt;EM&gt;&lt;STRONG&gt;MSFT SQL Instance&lt;/STRONG&gt;&lt;/EM&gt; class should be the&amp;nbsp;&lt;STRONG&gt;starting&lt;/STRONG&gt; node in your CMDB Query Builder.&lt;/P&gt;&lt;P&gt;The starting node resulted CIs will be the targeted CIs for Dynamic CI Group.&lt;/P&gt;</description>
      <pubDate>Fri, 14 Apr 2023 09:45:24 GMT</pubDate>
      <guid>https://www.servicenow.com/community/common-service-data-model-forum/cmdb-query-builder-technical-service-offering/m-p/2534582#M4655</guid>
      <dc:creator>Srinivas Cheer1</dc:creator>
      <dc:date>2023-04-14T09:45:24Z</dc:date>
    </item>
    <item>
      <title>Re: CMDB Query Builder - Technical Service Offering</title>
      <link>https://www.servicenow.com/community/common-service-data-model-forum/cmdb-query-builder-technical-service-offering/m-p/2534818#M4656</link>
      <description>&lt;P&gt;Hi, thanks for your response. The natural language query box does not produce the query, it feels a bit clunky and not really fit for purpose.&lt;/P&gt;&lt;P&gt;I am happy that my query is accurate and produces the correct data (its a simple logic), the problem is the way the results are used in dynamic CI groups. I dont want to see servers, just db instances.&lt;/P&gt;</description>
      <pubDate>Fri, 14 Apr 2023 12:59:29 GMT</pubDate>
      <guid>https://www.servicenow.com/community/common-service-data-model-forum/cmdb-query-builder-technical-service-offering/m-p/2534818#M4656</guid>
      <dc:creator>CW7</dc:creator>
      <dc:date>2023-04-14T12:59:29Z</dc:date>
    </item>
    <item>
      <title>Re: CMDB Query Builder - Technical Service Offering</title>
      <link>https://www.servicenow.com/community/common-service-data-model-forum/cmdb-query-builder-technical-service-offering/m-p/2534827#M4657</link>
      <description>&lt;P&gt;Hi, Thanks for your response.&amp;nbsp;&lt;/P&gt;&lt;P&gt;It doesn't matter which which is the starting node, when you link the query to a dynamic ci group and select the "view group cmdb cis" it gives me both servers and instances.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Apr 2023 13:03:24 GMT</pubDate>
      <guid>https://www.servicenow.com/community/common-service-data-model-forum/cmdb-query-builder-technical-service-offering/m-p/2534827#M4657</guid>
      <dc:creator>CW7</dc:creator>
      <dc:date>2023-04-14T13:03:24Z</dc:date>
    </item>
    <item>
      <title>Re: CMDB Query Builder - Technical Service Offering</title>
      <link>https://www.servicenow.com/community/common-service-data-model-forum/cmdb-query-builder-technical-service-offering/m-p/2534845#M4658</link>
      <description>&lt;P&gt;what results did you get with the NLQ? it worked great in my system, and only listed the SQL Server instances; it did not list the servers. it will also show you the query builder it creates, which i haven't tried to recreate outside the NLQ as it uses constructs that i don't know how to recreate through the drag and drop method. but NLQ should work fine for your use case.&lt;/P&gt;</description>
      <pubDate>Fri, 14 Apr 2023 13:15:54 GMT</pubDate>
      <guid>https://www.servicenow.com/community/common-service-data-model-forum/cmdb-query-builder-technical-service-offering/m-p/2534845#M4658</guid>
      <dc:creator>SN Arch Guy</dc:creator>
      <dc:date>2023-04-14T13:15:54Z</dc:date>
    </item>
    <item>
      <title>Re: CMDB Query Builder - Technical Service Offering</title>
      <link>https://www.servicenow.com/community/common-service-data-model-forum/cmdb-query-builder-technical-service-offering/m-p/2534904#M4659</link>
      <description>&lt;P&gt;I struggled to get useful results but I am new to this functionality though have used TQL CMDB tools extensively.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you please share the NLQ string you used (verbatim) so that I can test ? - and hopefully learn to use this new feature.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Apr 2023 13:45:09 GMT</pubDate>
      <guid>https://www.servicenow.com/community/common-service-data-model-forum/cmdb-query-builder-technical-service-offering/m-p/2534904#M4659</guid>
      <dc:creator>CW7</dc:creator>
      <dc:date>2023-04-14T13:45:09Z</dc:date>
    </item>
    <item>
      <title>Re: CMDB Query Builder - Technical Service Offering</title>
      <link>https://www.servicenow.com/community/common-service-data-model-forum/cmdb-query-builder-technical-service-offering/m-p/2534924#M4660</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/221938"&gt;@CW7&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;I trust you are doing great.&lt;/P&gt;&lt;P&gt;To implement this, we can navigate to the CMDB Query Builder and enter the following query in the natural language query box: "MSFT SQL Instance that runs on server whose environment is PRD". This query specifies that we are looking for MSFT SQL Instances that are associated with servers having a production environment.&lt;/P&gt;&lt;P&gt;After entering the query, it is important to ensure that the rest of the pane is empty before clicking the "Search" button. Once the search results are displayed, we can then click the "Run" button to execute the query.&lt;/P&gt;&lt;P&gt;By using this method, we can ensure that only the MSFT SQL instances that meet our specific criteria are returned in the result set, while excluding the servers themselves. This is particularly useful in situations where we want to create a dynamic CI group or technical service offering that only includes the relevant instances, without including the servers that support them.&lt;/P&gt;&lt;P&gt;If further filtering criteria are required, such as criticality or support team, these can be easily added to the query using the same natural language syntax. This allows us to create highly specific and targeted queries that meet our exact needs.&lt;/P&gt;</description>
      <pubDate>Fri, 14 Apr 2023 13:54:12 GMT</pubDate>
      <guid>https://www.servicenow.com/community/common-service-data-model-forum/cmdb-query-builder-technical-service-offering/m-p/2534924#M4660</guid>
      <dc:creator>Amit Gujarathi</dc:creator>
      <dc:date>2023-04-14T13:54:12Z</dc:date>
    </item>
    <item>
      <title>Re: CMDB Query Builder - Technical Service Offering</title>
      <link>https://www.servicenow.com/community/common-service-data-model-forum/cmdb-query-builder-technical-service-offering/m-p/2534925#M4661</link>
      <description>&lt;P&gt;you should be able to use the exact string i put in my original post:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;msft sql instance that runs on server whose environment is PRD&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the only things you may need to change are:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;"environment": use the field name from the server CI records that you use to check whether they are production systemsor not.&lt;/LI&gt;&lt;LI&gt;"PRD": use the field contents that you use, to determine whether a server is a production system or not.&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Fri, 14 Apr 2023 13:55:13 GMT</pubDate>
      <guid>https://www.servicenow.com/community/common-service-data-model-forum/cmdb-query-builder-technical-service-offering/m-p/2534925#M4661</guid>
      <dc:creator>SN Arch Guy</dc:creator>
      <dc:date>2023-04-14T13:55:13Z</dc:date>
    </item>
    <item>
      <title>Re: CMDB Query Builder - Technical Service Offering</title>
      <link>https://www.servicenow.com/community/common-service-data-model-forum/cmdb-query-builder-technical-service-offering/m-p/2535003#M4662</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Did you tried the solution what I've given. If not, please make a note on below points.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. Make DB Instance class as starting node and connect with Server class by applying your filters&lt;/P&gt;&lt;P&gt;2. When you run the CMDB query, results will be displayed for both DB instances and servers.&lt;/P&gt;&lt;P&gt;3. But when you called that CMDB query into the CMDB group and Dynamic CI Group, starting node CIs will be picked and associate to the Dynamic CI Group.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please note there is an OOB scheduled job runs for every 10min to associate the CIs&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm confident you can achieve with this, try once.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 14 Apr 2023 15:27:27 GMT</pubDate>
      <guid>https://www.servicenow.com/community/common-service-data-model-forum/cmdb-query-builder-technical-service-offering/m-p/2535003#M4662</guid>
      <dc:creator>Srinivas Cheer1</dc:creator>
      <dc:date>2023-04-14T15:27:27Z</dc:date>
    </item>
    <item>
      <title>Re: CMDB Query Builder - Technical Service Offering</title>
      <link>https://www.servicenow.com/community/common-service-data-model-forum/cmdb-query-builder-technical-service-offering/m-p/2543149#M4706</link>
      <description>&lt;P&gt;Hi Amit, thanks for your help.&lt;/P&gt;&lt;P&gt;The NLQ works so long as I don't include the "environment is prod/production". If I add this using the filter I get the exact same query as I made manually. This is not the problem, its a very simple query.&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I associate this query with a dynamic CI group and then display the group members it shows both SQL instances and Servers.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Apr 2023 14:01:48 GMT</pubDate>
      <guid>https://www.servicenow.com/community/common-service-data-model-forum/cmdb-query-builder-technical-service-offering/m-p/2543149#M4706</guid>
      <dc:creator>CW7</dc:creator>
      <dc:date>2023-04-24T14:01:48Z</dc:date>
    </item>
    <item>
      <title>Re: CMDB Query Builder - Technical Service Offering</title>
      <link>https://www.servicenow.com/community/common-service-data-model-forum/cmdb-query-builder-technical-service-offering/m-p/2543176#M4707</link>
      <description>&lt;P&gt;This is just how the Dynamic CI Groups/CMDB Groups work.&amp;nbsp; They take ALL of the CIs returned in the Saved Query.&amp;nbsp; For CMDB Groups created with standard filters (which is a common use case) you look for a specific set of CIs of a specified class that meet certain conditions.&amp;nbsp; However, if you use a Saved Query to populate your CMDB Group, then it will include all of the CIs that are in that query.&lt;/P&gt;</description>
      <pubDate>Mon, 24 Apr 2023 14:16:35 GMT</pubDate>
      <guid>https://www.servicenow.com/community/common-service-data-model-forum/cmdb-query-builder-technical-service-offering/m-p/2543176#M4707</guid>
      <dc:creator>CMDB Whisperer</dc:creator>
      <dc:date>2023-04-24T14:16:35Z</dc:date>
    </item>
    <item>
      <title>Re: CMDB Query Builder - Technical Service Offering</title>
      <link>https://www.servicenow.com/community/common-service-data-model-forum/cmdb-query-builder-technical-service-offering/m-p/2543187#M4708</link>
      <description>&lt;P&gt;That way you can also use it to group things for modern support/stack support.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Apr 2023 14:21:02 GMT</pubDate>
      <guid>https://www.servicenow.com/community/common-service-data-model-forum/cmdb-query-builder-technical-service-offering/m-p/2543187#M4708</guid>
      <dc:creator>Barry Kant</dc:creator>
      <dc:date>2023-04-24T14:21:02Z</dc:date>
    </item>
    <item>
      <title>Re: CMDB Query Builder - Technical Service Offering</title>
      <link>https://www.servicenow.com/community/common-service-data-model-forum/cmdb-query-builder-technical-service-offering/m-p/2543207#M4709</link>
      <description>&lt;P&gt;Hi Srinivas,&lt;/P&gt;&lt;P&gt;Thanks for your response. I have tested this and both the server and the db instance is updated by the CSDM data sync. The Change/Manged by/Supported by groups are propagated down onto all members of the dynamic group, not just the starting node CIs.&amp;nbsp; Point 3 above is incorrect.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Apr 2023 14:36:56 GMT</pubDate>
      <guid>https://www.servicenow.com/community/common-service-data-model-forum/cmdb-query-builder-technical-service-offering/m-p/2543207#M4709</guid>
      <dc:creator>CW7</dc:creator>
      <dc:date>2023-04-24T14:36:56Z</dc:date>
    </item>
    <item>
      <title>Re: CMDB Query Builder - Technical Service Offering</title>
      <link>https://www.servicenow.com/community/common-service-data-model-forum/cmdb-query-builder-technical-service-offering/m-p/2543231#M4710</link>
      <description>&lt;P&gt;Hi Whisperer,&lt;/P&gt;&lt;P&gt;Yes this seems to be the case after much testing. This is a significant limitation of this functionality IMHO as you can only use it for dynamic group queries containing the class you are querying. This is of no real advantage than using the encoded query on the CMDB group rather than a saved query.&lt;/P&gt;&lt;P&gt;For this use case I've worked out a business rule to populate the environment on the DB instance. I was hoping to use it (for other cases) in conjunction with running processes/installed software in combination with multiple ci classes...&lt;/P&gt;&lt;P&gt;You should be able to specify an output class as you would for generally in DB update queries despite what is in the query logic. Perhaps this will come in the future...&lt;/P&gt;</description>
      <pubDate>Mon, 24 Apr 2023 14:54:03 GMT</pubDate>
      <guid>https://www.servicenow.com/community/common-service-data-model-forum/cmdb-query-builder-technical-service-offering/m-p/2543231#M4710</guid>
      <dc:creator>CW7</dc:creator>
      <dc:date>2023-04-24T14:54:03Z</dc:date>
    </item>
    <item>
      <title>Re: CMDB Query Builder - Technical Service Offering</title>
      <link>https://www.servicenow.com/community/common-service-data-model-forum/cmdb-query-builder-technical-service-offering/m-p/2543276#M4711</link>
      <description>&lt;P&gt;I see both potential scenarios.&amp;nbsp; I think the "idea" that I would post (if I had access to post ideas, &amp;lt;ahem&amp;gt;) would be to add the ability to define a CMDB Group using the intersection (not the union) of two or more queries, or to just exclude certain query nodes from the actual results.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;While in some cases I might want to use the query relationships to identify certain nodes, and ignore the nodes that I used to perform the query itself, in other cases it does make sense to include all of the nodes in the query.&amp;nbsp; I think this would be a great feature to add to CMDB Query Builder.&lt;/P&gt;</description>
      <pubDate>Mon, 24 Apr 2023 15:28:38 GMT</pubDate>
      <guid>https://www.servicenow.com/community/common-service-data-model-forum/cmdb-query-builder-technical-service-offering/m-p/2543276#M4711</guid>
      <dc:creator>CMDB Whisperer</dc:creator>
      <dc:date>2023-04-24T15:28:38Z</dc:date>
    </item>
  </channel>
</rss>

