This API updates proposal object field values.

APISignature
updateProposalwebService static Boolean updateProposal(Apttus_Proposal__Proposal__c proposalSO)



Request Parameter
NameTypeDescription
proposalSOApttus_Proposal__Proposal__cThe proposal SObject



Response - Apttus_Proposal_Proposal_c
FieldTypeDescription
updateStatusBooleanIndicated whether the update was successful. The values returned are true and false.


Code Sample

The sample below enables you to update the proposal object field values.


/**
 * The below method demonstrates how to update description for already created proposal
 */
public Boolean updateProposal(String proposalName)
{
	Boolean updateStatus = false;
	Apttus_Proposal__Proposal__c proposalSO = [SELECT Id FROM Apttus_Proposal__Proposal__c WHERE Name = :proposalName LIMIT 1];
	
	// assign new value to the proposal fields one by one.
    proposalSO.Apttus_Proposal__Description__c = 'Updated through updateProposal API';
    updateStatus = Apttus_Proposal.ProposalWebService.updateProposal(proposalSO);
    return updateStatus;
}
CODE

Integration Details

Use the following information in your integrations with Apttus CPQ Web Services API. Refer to Integrating Apttus with External Systems for information on how to get started.

Response/Request XML

Example Request

<soapenv:Envelope
    xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
    xmlns:prop="http://soap.sforce.com/schemas/class/Apttus_Proposal/ProposalWebService">
    <soapenv:Header>
        <prop:SessionHeader>
            <prop:sessionId>00DZ000000NAEIA!ASAAQBtZlu4.YeuaMdf45TpRUpKEgxgWi30zUbCO161kylPP_RfOfumgPPciWIOobZst4.nxzgnmtZOs3hLjbUCWziADgmbo</prop:sessionId>
        </prop:SessionHeader>
    </soapenv:Header>
    <soapenv:Body>
        <prop:updateProposal>
            <prop:proposalSO>
                <prop:Id>a0eZ0000005pG5N</prop:Id>
                <prop:Apttus_QPConfig__PriceListId__c>a1DZ0000002mg5n</prop:Apttus_QPConfig__PriceListId__c>
                <prop:Apttus_Proposal__Account__c>001Z000001UtoRL</prop:Apttus_Proposal__Account__c>
            </prop:proposalSO>
        </prop:updateProposal>
    </soapenv:Body>
</soapenv:Envelope>
XML

Example Response

<soapenv:Envelope
    xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
    xmlns="http://soap.sforce.com/schemas/class/Apttus_Proposal/ProposalWebService">
    <soapenv:Body>
        <updateProposalResponse>
            <result>true</result>
        </updateProposalResponse>
    </soapenv:Body>
</soapenv:Envelope>
XML