How to add Member to Pickup Group

Version 1
    This document was generated from CDN thread

    Created by: Thomas Beck on 12-10-2009 06:54:13 PM
    Hi all,
     
    how can i add a new member to a pickup group?
     
    * UpdateLineReq -> callPickupGroupName
    * UpdateCallPickupGroupReq -> members -> member?
     
    No option seems to be working.
     
    Thank you!

    Subject: RE: How to add Member to Pickup Group
    Replied by: Stephan Steiner on 13-10-2009 09:41:14 AM
    Could it be that you have a syntax error in your AXL commands? updateLine works fine here.. been using it for a long time.
    If you send a command and don't see any changes in ccmadmin (on the line for the updateLine request), then you know there's either something wrong with your syntax, or you found a bug in AXL.
    I've just recently ported my "manual" AXL lib to CCM 7.1.3 so I can say with confidence that this works as pickup groups is something I test for.. it also works on CCM6 (.1.x) and CCM4 (.2.x) - I have software deployed productively that deals with pickup groups.

    Subject: RE: How to add Member to Pickup Group
    Replied by: Thomas Beck on 13-10-2009 10:01:17 AM
    Here is my way:
     
    <updateLine xmlns="http://www.cisco.com/AXL/API/1.0">
      <uuid xsi:type="xsd:string">f6db57cf-a5fe-4c05-7c3e-d4f18ab2034b</uuid>
      <callPickupGroup>
        <name xsi:type="xsd:string">CPG 0001</name>
      </callPickupGroup>
    </updateLine>
     
    saying:
     
    <axl:updateLineResponse xmlns:axl="http://www.cisco.com/AXL/API/1.0" xmlns:xsi="http://www.cisco.com/AXL/API/1.0">
      <return>true</return>
    </axl:updateLineResponse>
     
    So it seems to work but when i look for Call Pickup Group for the specified line there is no Group "CPG 0001" selected.
     
    Do you have an simple example?
     
    Thanks.

    Subject: RE: How to add Member to Pickup Group
    Replied by: Stephan Steiner on 13-10-2009 03:22:48 PM
    Off the top of my head, I'd say turn that into
     
    <updateLine xmlns="http://www.cisco.com/AXL/API/1.0">
      <uuid xsi:type="xsd:string">f6db57cf-a5fe-4c05-7c3e-d4f18ab2034b</uuid>
      <callPickupGroupName>CPG 0001</callPickupGroupName>
    </updateLine>
     
    The update statements allow both uuid or name but the syntax is mostly either
     
    <objectId>some guid</objectId>
     
    or using the name
     
    <objectName>some name here</objectName>
     
    You can never use the full object syntax (
     
    <object uuid="some guid"><name>some name here</name></object>
     
    Even for gets/adds, the AXL documentation usually says only the uuid element is ready from a full object.. so on a get, you'd get either
     
    <object uuid="some guid"/>
     
    or you'd get
     
    <objectName>some name here</objectName>
     
    Same goes for the add Operations, and the updates use the objectId notation when using guids (but be careful.. some times you must use the <object uuid="some guid"/> syntax... to make sure you use the correct one when writing AXL statements in your code, always check the downloadable schema. You can use an older version of XML Spy to turn the wsdl/xsd into a usable documentation with one main html branching off to another document so that you won't use a GB of memory to have the document open (plus searching is virtually useless in the full document because it is so huge)

    Subject: RE: How to add Member to Pickup Group
    Replied by: Thomas Beck on 14-10-2009 06:34:37 AM
    I tried also your option but therefor i got the following output:
     
    Request:
    <updateLine xmlns="http://www.cisco.com/AXL/API/1.0">
      <uuid xsi:type="xsd:string">f6db57cf-a5fe-4c05-7c3e-d4f18ab2034b</uuid>
      <callPickupGroupName xsi:type="xsd:string">CPG 0001</callPickupGroupName>
    </updateLine>
     
    Answer:
    <SOAP-ENV:Body>
      <SOAP-ENV:Fault>
        <faultcode>SOAP-ENV:Client</faultcode>
        <faultstring>Cannot insert a null into column (pickupgrouplinemap.fknumplan_line).</faultstring>
        <detail>
          <axl:Error xmlns:axl="http://www.cisco.com/AXL/API/1.0"><axl:code>-391</axl:code>
            <axl:message>Cannot insert a null into column (pickupgrouplinemap.fknumplan_line).</axl:message>
            <request>updateLine</request>
          </axl:Error>
        </detail>
      </SOAP-ENV:Fault>
    </SOAP-ENV:Body>
     
    I think there is something wrong with my Pickupgroup?
     
    Thank you!