cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1071
Views
5
Helpful
1
Replies

Users Associated with Line

m.batts
Level 4
Level 4

Hi , I'm trying to set the " Users associated with line" under the line appearance for a Directory number.

I'm quote comfortable with using SOAP queries but seem to be struggling with this one.

First of all , I couldn't  to find it under updateLine  in the axl 10.5 schema. In the end i went with the one below from updateUser , but I'm not sure it is right?

<SOAP-ENV:Envelope xmlns:SOAP-ENV=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\">
            <SOAP-ENV:Body>
<axl:updateUser xmlns:axl=\"http://www.cisco.com/AXL/API/10.5\"  sequence=\"1\">
  <userid>MBatts</userid>
  <lineAppearanceAssociationForPresences>
  <lineAppearanceAssociationForPresence>
  <laapAssociate>t</laapAssociate>
  <laapDescription>this is a test description</laapDescription>
  <laapProductType>Cisco Unified Client Services Framework</laapProductType>
  <laapDeviceName>CSFMBATTS</laapDeviceName>
  <laapDirectory>3717</laapDirectory>
  <laapPartition>INVLDN-DEVICES-2GS</laapPartition>
  </lineAppearanceAssociationForPresence>
  </lineAppearanceAssociationForPresences>
</axl:updateUser>

</SOAP-ENV:Body>

</SOAP-ENV:Envelope>";

Anyone got this working ??? I don't get an error , but nothing gets updated.

1 Accepted Solution

Accepted Solutions

dstaudt
Cisco Employee
Cisco Employee

Looks like the association you are looking to create is between the line _appearance_ (on a particular phone) and the user.  Line-appearance-particular settings are accessible via <updatePhone>.  The following requests appears to work on my 10.5 system:

<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://www.cisco.com/AXL/API/10.5">

  <SOAP-ENV:Body>

    <ns1:updatePhone>

      <name>CSFDSTAUDT</name>

              <lines>

                  <line>

                    <index>1</index>

                    <dirn uuid="{14AAD4F3-1F55-4895-6C27-AB98B9393873}"/>

                    <associatedEndusers>

                        <enduser>

                          <userId>dstaudt</userId>

                        </enduser>

                    </associatedEndusers>

                  </line>

              </lines>

    </ns1:updatePhone>

  </SOAP-ENV:Body>

</SOAP-ENV:Envelope>

View solution in original post

1 Reply 1

dstaudt
Cisco Employee
Cisco Employee

Looks like the association you are looking to create is between the line _appearance_ (on a particular phone) and the user.  Line-appearance-particular settings are accessible via <updatePhone>.  The following requests appears to work on my 10.5 system:

<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://www.cisco.com/AXL/API/10.5">

  <SOAP-ENV:Body>

    <ns1:updatePhone>

      <name>CSFDSTAUDT</name>

              <lines>

                  <line>

                    <index>1</index>

                    <dirn uuid="{14AAD4F3-1F55-4895-6C27-AB98B9393873}"/>

                    <associatedEndusers>

                        <enduser>

                          <userId>dstaudt</userId>

                        </enduser>

                    </associatedEndusers>

                  </line>

              </lines>

    </ns1:updatePhone>

  </SOAP-ENV:Body>

</SOAP-ENV:Envelope>

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: