<?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>topic Re: Getting the Phone button template for Product using SQL in Management</title>
    <link>https://community.cisco.com/t5/management/getting-the-phone-button-template-for-product-using-sql/m-p/3691736#M2940</link>
    <description>&lt;P&gt;I've struggled with this one before as well.&amp;nbsp; Not sure what CUCM version you're running but on 11.5 the phonetemplate table uses tkmodel as the identifier for phone button templates which is stored as a numeric value instead of a string.&lt;BR /&gt;&lt;BR /&gt;To view Cisco's defined correlation between numeric value/models you can query the typeproduct table:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;PRE&gt;select name,tkmodel from typeproduct&lt;/PRE&gt;
&lt;P&gt;The enum value exists in the phonetemplate table as tkmodel so you can inner join on that value:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;PRE&gt;select p.name from phonetemplate as p inner join typemodel as tm on p.tkmodel=tm.enum where tm.name='Cisco 6961'&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 20 Aug 2018 20:05:07 GMT</pubDate>
    <dc:creator>derek.fraser</dc:creator>
    <dc:date>2018-08-20T20:05:07Z</dc:date>
    <item>
      <title>Getting the Phone button template for Product using SQL</title>
      <link>https://community.cisco.com/t5/management/getting-the-phone-button-template-for-product-using-sql/m-p/3691190#M2939</link>
      <description>&lt;P&gt;I am trying to construct the SQL for getting the Phone button template name for a particular product. The following is my query:&lt;/P&gt;
&lt;PRE&gt;select p.name from phonetemplate as p inner join p.tkmodel=typemodel.pkid where typemodel.name="Cisco 6961"&lt;/PRE&gt;
&lt;P&gt;But it's not working. Where am i making the mistake.&lt;/P&gt;</description>
      <pubDate>Mon, 20 Aug 2018 05:25:34 GMT</pubDate>
      <guid>https://community.cisco.com/t5/management/getting-the-phone-button-template-for-product-using-sql/m-p/3691190#M2939</guid>
      <dc:creator>AR7</dc:creator>
      <dc:date>2018-08-20T05:25:34Z</dc:date>
    </item>
    <item>
      <title>Re: Getting the Phone button template for Product using SQL</title>
      <link>https://community.cisco.com/t5/management/getting-the-phone-button-template-for-product-using-sql/m-p/3691736#M2940</link>
      <description>&lt;P&gt;I've struggled with this one before as well.&amp;nbsp; Not sure what CUCM version you're running but on 11.5 the phonetemplate table uses tkmodel as the identifier for phone button templates which is stored as a numeric value instead of a string.&lt;BR /&gt;&lt;BR /&gt;To view Cisco's defined correlation between numeric value/models you can query the typeproduct table:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;PRE&gt;select name,tkmodel from typeproduct&lt;/PRE&gt;
&lt;P&gt;The enum value exists in the phonetemplate table as tkmodel so you can inner join on that value:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;PRE&gt;select p.name from phonetemplate as p inner join typemodel as tm on p.tkmodel=tm.enum where tm.name='Cisco 6961'&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Aug 2018 20:05:07 GMT</pubDate>
      <guid>https://community.cisco.com/t5/management/getting-the-phone-button-template-for-product-using-sql/m-p/3691736#M2940</guid>
      <dc:creator>derek.fraser</dc:creator>
      <dc:date>2018-08-20T20:05:07Z</dc:date>
    </item>
    <item>
      <title>Re: Getting the Phone button template for Product using SQL</title>
      <link>https://community.cisco.com/t5/management/getting-the-phone-button-template-for-product-using-sql/m-p/3691872#M2942</link>
      <description>Thanks, that worked for me.</description>
      <pubDate>Tue, 21 Aug 2018 04:29:00 GMT</pubDate>
      <guid>https://community.cisco.com/t5/management/getting-the-phone-button-template-for-product-using-sql/m-p/3691872#M2942</guid>
      <dc:creator>AR7</dc:creator>
      <dc:date>2018-08-21T04:29:00Z</dc:date>
    </item>
  </channel>
</rss>

