Integrations and APIs for Service

Get Involved. Join the Conversation.

Topic

    Manjit SIngh Arora
    Updating Quote Line Item (Opportunity Object) via...
    Topic posted July 25, 2019 by Manjit SIngh AroraGreen Ribbon: 100+ Points, tagged SOAP 
    21 Views, 3 Comments
    Title:
    Updating Quote Line Item (Opportunity Object) via SOAP API
    Summary:
    Not able to update quote line item
    Content:

    HI All,

    I am trying to update quote line items of opportunity object through SOAP API, i am not getting any error in response but the changes are not reflected in Agent Desktop.

    Snippet of SOAP Request.

    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">

        <soapenv:Header>

            <ns7:ClientInfoHeader xmlns:ns7="urn:messages.ws.rightnow.com/v1_4" soapenv:mustUnderstand="0">

                <ns7:AppID>Basic Update</ns7:AppID>

            </ns7:ClientInfoHeader>

            <wsse:Security xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" mustUnderstand="1">

                <wsse:UsernameToken>

                    <wsse:Username>Admin1</wsse:Username>

                    <wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">Admin1234</wsse:Password>

                </wsse:UsernameToken>

            </wsse:Security>

        </soapenv:Header>

        <soapenv:Body>

            <ns7:Update xmlns:ns7="urn:messages.ws.rightnow.com/v1_4">

                <ns7:RNObjects xmlns:ns4="urn:objects.ws.rightnow.com/v1_4" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ns4:Opportunity">

                    <ID xmlns="urn:base.ws.rightnow.com/v1_4" id="11" />

                    <ns4:Quotes>

                        <ns4:QuoteList>                                                                                                                                   

                                                                            <ns4:Name action="update">Quote_XYZ</ns4:Name>

                                                                </ns4:QuoteList>

                    </ns4:Quotes>

                </ns7:RNObjects>

                <ns7:ProcessingOptions>

                    <ns7:SuppressExternalEvents>false</ns7:SuppressExternalEvents>

                    <ns7:SuppressRules>false</ns7:SuppressRules>

                </ns7:ProcessingOptions>

            </ns7:Update>

        </soapenv:Body>

    </soapenv:Envelope>

     

     

    Comment

     

    • Lakshay Bhalla

      Hi Manjit,

      There may be any chances that it might reflect after sometime. It happened to my colleague where he created/updated the opportunity and it took time to reflect in Console.

      Try doing the same with REST API? It is so much better with REST API and see if it returns any error or shows changes in console after successful update.

      Thanks

      -Lakshay

      • Manjit SIngh Arora

        Hi Lakshay,

        Thanks for answering, As you said , I waited for some time but it did not reflect the changes.

        with REST Api it is working fine , I want to implement with SOAP API as well.

        • Robert Surujbhan

          Hi Manjit, there is a minor correction required in your SOAP request. Attached is the correct structure.  Mainly, you need to move the action="update" attribute to the <QuoteList> node, and add the <ID> of the specific quote record in the <QuoteList> (so the API knows which Quote you are updating!). If you need to update multiple Quotes on the same Opportunity, simply add more <QuoteList> nodes under <Quotes>, each containing their own <ID> and <Name> accordingly (and any other fields you wish to update).  Hope this helps?