Author Message
DavidBrown5
Joined: Mar 12, 2015
Messages: 6
Offline
I am trying to work out how to remove a single entry in a BSR table using the SOAP BestServiceRouting model, I can easily add an entry as I show below, this code will add an entry at position 2 on BSR table 35.

I can't wok out how remove a single line, the Remove operation removes the whole table and not single entries, I have also tried using the Change operation with nothing in between the fields, but this does not change the line.

Any help would be appreciated.

Thanks.


<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ses="http://xml.avaya.com/ws/session" xmlns:ns="http://xml.avaya.com/ws/SystemManagementService/2008/07/01">

<soapenv:Header>
<ses:sessionID></ses:sessionID>
</soapenv:Header>
<soapenv:Body>
<ns:submitRequest>
<modelFields>
<BestServiceRouting>
<Location_Name position="2">Test BSR Table</Location_Name>
<Switch_Node position="2">31115</Switch_Node>
<Status_Poll_VDN position="2">51475026</Status_Poll_VDN>
<Interflow_VDN position="2">51980200</Interflow_VDN>
</BestServiceRouting>
</modelFields>
<operation>change</operation>
<objectname></objectname>
<qualifier>35</qualifier>
</ns:submitRequest>
</soapenv:Body>
</soapenv:Envelope>
MakarandBhalekar
Joined: Oct 24, 2013
Messages: 22
Offline
Hi David,

If you want to remove a particular entry from a form, you need to make use of the "Position" value of that form.
You perform a Display operation and it would return an array of values to you. You then identify the position of the value of your interest (the one that you want to remove) and then run the the change operation for that particular Position. You need to pass blank values in order to remove them from the form.

To follow your use-case, the following SOAP request will remove the 1st entry from a BSR table 1.

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ses="http://xml.avaya.com/ws/session" xmlns:ns="http://xml.avaya.com/ws/SystemManagementService/2008/07/01">
<soapenv:Header>
<ses:sessionID>081888af0217fa85bb0d54cdc5b64c0b</ses:sessionID>
</soapenv:Header>
<soapenv:Body>
<ns:submitRequest>
<modelFields>
<BestServiceRouting>

<Number>1</Number>

<Name>test</Name>

<Maximum_Suppression_Time>30</Maximum_Suppression_Time>

<Lock>n</Lock>

<Num position="1"> </Num>

<Location_Name position="1"> </Location_Name>
<Switch_Node position="1"> </Switch_Node>

<Status_Poll_VDN position="1"> </Status_Poll_VDN>

<Interflow_VDN position="1"> </Interflow_VDN>

<Net_Redir position="1">n</Net_Redir>

</BestServiceRouting>
</modelFields>
<operation>change</operation>
<objectname></objectname>
<qualifier>1</qualifier>

</ns:submitRequest>
</soapenv:Body>
</soapenv:Envelope>


Regards,
Mak
Go to:   
Mobile view