Updating a Proposal
This API updates proposal object field values.
API |
Signature |
---|---|
updateProposal |
webService static Boolean updateProposal(Apttus_Proposal__Proposal__c proposalSO) |
Request Parameter |
||
---|---|---|
Name |
Type |
Description |
proposalSO | Apttus_Proposal__Proposal__c |
The proposal SObject |
Response - Apttus_Proposal_Proposal_c |
||
---|---|---|
Field |
Type |
Description |
updateStatus | Boolean |
Indicated 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;
}
Integration Details
Use the following information in your integrations with CPQ Web Services API. Refer to Integrating Conga 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>
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>