Add and change Fixed Account Info (FACInfo)

Version 1
    This document was generated from CDN thread

    Created by: Peter Whittaker on 17-05-2013 04:29:02 AM
    I would appreciate if you could provide an example for checking if a code exists, adding and changing FacInfo authorizationLevel and code entries using SOAP commands.

    Subject: RE: Add and change Fixed Account Info (FACInfo)
    Replied by: David Staudt on 21-05-2013 03:29:49 PM
    Tested against UCM 8.5(1):
    List all FACs:
     
    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns="http://www.cisco.com/AXL/API/8.5">
       <soapenv:Header/>
       <soapenv:Body>
          <ns:listFacInfo sequence="1">
             <searchCriteria>
                <name>%</name>
             </searchCriteria>
             <returnedTags>
               <name/>
               <code/>
               <authorizationLevel/>
             </returnedTags>
          </ns:listFacInfo>
       </soapenv:Body>
    </soapenv:Envelope>
    ------------------------------------
    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
       <soapenv:Body>
          <ns:listFacInfoResponse xmlns:ns="http://www.cisco.com/AXL/API/8.5">
             <return>
                <facInfo uuid="{3D1B28FF-B4D2-18D4-8FFF-38C7EE33BA5D}">
                   <name>testFAC1</name>
                   <code>99</code>
                   <authorizationLevel>1</authorizationLevel>
                </facInfo>
             </return>
          </ns:listFacInfoResponse>
       </soapenv:Body>
    </soapenv:Envelope>
     
    Update an existing FAC:

    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns="http://www.cisco.com/AXL/API/8.5">
       <soapenv:Header/>
       <soapenv:Body>
          <ns:updateFacInfo sequence="1">
             <name>testFAC1</name>
             <newName>newFAC1</newName>
             <code>98</code>
             <authorizationLevel>2</authorizationLevel>
          </ns:updateFacInfo>
       </soapenv:Body>
    </soapenv:Envelope>
    ----------------------------------
    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
       <soapenv:Body>
          <ns:updateFacInfoResponse xmlns:ns="http://www.cisco.com/AXL/API/8.5">
             <return>{3D1B28FF-B4D2-18D4-8FFF-38C7EE33BA5D}</return>
          </ns:updateFacInfoResponse>
       </soapenv:Body>
    </soapenv:Envelope>
     

    Subject: RE: Add and change Fixed Account Info (FACInfo)
    Replied by: Peter Whittaker on 24-05-2013 03:52:30 AM
    Thanks David
    What code would I use to determine if a code already exists?

    Subject: RE: Add and change Fixed Account Info (FACInfo)
    Replied by: David Staudt on 24-05-2013 09:06:44 AM
    You can use the listFacInfo example above, specifying the FAC name in the <name> element.  The '%' is a wildcard which will return any match.