<?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: Extracting Pickup group members using AXL and python in Management</title>
    <link>https://community.cisco.com/t5/management/extracting-pickup-group-members-using-axl-and-python/m-p/3899684#M3140</link>
    <description>&lt;P&gt;I believe in order to get this 'reverse' view of DNs to pickup groups (where the 'forward' view is 'what pickup group does this specific line belong to') efficiently you will need to use &amp;lt;executeSqlQuery&amp;gt; to join some CUCM tables, e.g.:&lt;/P&gt;
&lt;P&gt;SQL:&lt;/P&gt;
&lt;PRE&gt;select numplan.dnorpattern from numplan, pickupgrouplinemap, pickupgroup where
    numplan.pkid = pickupgrouplinemap.fknumplan_line and
    pickupgrouplinemap.fkpickupgroup = pickupgroup.pkid and
    pickupgroup.name = "testCallPickupGroup"&lt;/PRE&gt;
&lt;P&gt;I've added a sample script demonstrating this in Python to the repo here: &lt;A href="https://github.com/CiscoDevNet/axl-python-zeep-samples" target="_blank"&gt;https://github.com/CiscoDevNet/axl-python-zeep-samples&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 30 Jul 2019 02:56:27 GMT</pubDate>
    <dc:creator>dstaudt</dc:creator>
    <dc:date>2019-07-30T02:56:27Z</dc:date>
    <item>
      <title>Extracting Pickup group members using AXL and python</title>
      <link>https://community.cisco.com/t5/management/extracting-pickup-group-members-using-axl-and-python/m-p/3897245#M3128</link>
      <description>&lt;P&gt;I am trying to extract members of pick up group using python and AXL API. However I can't locate the exact call that can provide the list. "getCallPickupGroup" is returning blank members, even when members are present in that pick up group.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any advice, on which call should I be using?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using CUCM 11.5 (Schema Ref :&lt;A href="https://developer.cisco.com/docs/axl/#!archived-references" target="_blank"&gt;https://developer.cisco.com/docs/axl/#!archived-references&lt;/A&gt;)&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jul 2019 05:24:53 GMT</pubDate>
      <guid>https://community.cisco.com/t5/management/extracting-pickup-group-members-using-axl-and-python/m-p/3897245#M3128</guid>
      <dc:creator>Shesh</dc:creator>
      <dc:date>2019-07-25T05:24:53Z</dc:date>
    </item>
    <item>
      <title>Re: Extracting Pickup group members using AXL and python</title>
      <link>https://community.cisco.com/t5/management/extracting-pickup-group-members-using-axl-and-python/m-p/3899684#M3140</link>
      <description>&lt;P&gt;I believe in order to get this 'reverse' view of DNs to pickup groups (where the 'forward' view is 'what pickup group does this specific line belong to') efficiently you will need to use &amp;lt;executeSqlQuery&amp;gt; to join some CUCM tables, e.g.:&lt;/P&gt;
&lt;P&gt;SQL:&lt;/P&gt;
&lt;PRE&gt;select numplan.dnorpattern from numplan, pickupgrouplinemap, pickupgroup where
    numplan.pkid = pickupgrouplinemap.fknumplan_line and
    pickupgrouplinemap.fkpickupgroup = pickupgroup.pkid and
    pickupgroup.name = "testCallPickupGroup"&lt;/PRE&gt;
&lt;P&gt;I've added a sample script demonstrating this in Python to the repo here: &lt;A href="https://github.com/CiscoDevNet/axl-python-zeep-samples" target="_blank"&gt;https://github.com/CiscoDevNet/axl-python-zeep-samples&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jul 2019 02:56:27 GMT</pubDate>
      <guid>https://community.cisco.com/t5/management/extracting-pickup-group-members-using-axl-and-python/m-p/3899684#M3140</guid>
      <dc:creator>dstaudt</dc:creator>
      <dc:date>2019-07-30T02:56:27Z</dc:date>
    </item>
    <item>
      <title>Re: Extracting Pickup group members using AXL and python</title>
      <link>https://community.cisco.com/t5/management/extracting-pickup-group-members-using-axl-and-python/m-p/3903549#M3144</link>
      <description>&lt;P&gt;Hi dstaudt,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for replying and the script. I haven't yet implemented the script but will update here once I do.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The script uses SQL, which I am sure will work fine.&lt;/P&gt;&lt;P&gt;However I was wondering if any of the AXL functions can do this? as in the "get****" or "list****" ones.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again.&lt;/P&gt;</description>
      <pubDate>Tue, 06 Aug 2019 05:43:03 GMT</pubDate>
      <guid>https://community.cisco.com/t5/management/extracting-pickup-group-members-using-axl-and-python/m-p/3903549#M3144</guid>
      <dc:creator>Shesh</dc:creator>
      <dc:date>2019-08-06T05:43:03Z</dc:date>
    </item>
    <item>
      <title>Re: Extracting Pickup group members using AXL and python</title>
      <link>https://community.cisco.com/t5/management/extracting-pickup-group-members-using-axl-and-python/m-p/3904179#M3147</link>
      <description>&lt;P&gt;This solved my problem...thanks.&lt;/P&gt;</description>
      <pubDate>Tue, 06 Aug 2019 23:18:02 GMT</pubDate>
      <guid>https://community.cisco.com/t5/management/extracting-pickup-group-members-using-axl-and-python/m-p/3904179#M3147</guid>
      <dc:creator>Shesh</dc:creator>
      <dc:date>2019-08-06T23:18:02Z</dc:date>
    </item>
    <item>
      <title>Re: Extracting Pickup group members using AXL and python</title>
      <link>https://community.cisco.com/t5/management/extracting-pickup-group-members-using-axl-and-python/m-p/3904754#M3150</link>
      <description>&lt;P&gt;Unfortunately AXL requests don't always offer the exact view need of the data...in this case, the only way to use regular AXL requests would be to perform &amp;lt;getLine&amp;gt; on each DN in the system to compile which DNs belong to which pickup groups, then aggregate the data and report.&amp;nbsp; The SQL options allows complete freedom ti query the data any way you need, but comes with a steeper learning curve (understanding the database tables/fields and relationships) and a small risk of backward-compatibility impact (the underlying DB schema could theoretically be changed on any release, though this is exceedingly rare in practice...)&lt;/P&gt;</description>
      <pubDate>Wed, 07 Aug 2019 17:30:46 GMT</pubDate>
      <guid>https://community.cisco.com/t5/management/extracting-pickup-group-members-using-axl-and-python/m-p/3904754#M3150</guid>
      <dc:creator>dstaudt</dc:creator>
      <dc:date>2019-08-07T17:30:46Z</dc:date>
    </item>
  </channel>
</rss>

