Download page Creating Proposal Line Items from Opportunity.
Creating Proposal Line Items from Opportunity
This API creates proposal line items from opportunity line items, creates a task for the action and invokes custom the callback which extends the interface CustomClass.IQuoteLifecycleCallback2. This API is a callback action after the proposal is created from createProposalFromOpportunity API.
Indicates whether the callback was successfully executed. The values are true and false.
Code Sample
The sample code below enables you to create proposal line items from the opportunity and create a new task for given proposalID.
/**
* The below code creates proposal line items from opportunity and create task for the proposal as callback actions.
* proposal from createProposalFromOpportunity API.
*/
public Boolean afterCreateFromOpportunity(String proposalName) {
Boolean callBackStatus = false;
Apttus_Proposal__Proposal__c proposalSO = [SELECT Id
FROM Apttus_Proposal__Proposal__c
WHERE Name =: proposalName LIMIT 1];
callBackStatus = Apttus_Proposal.ProposalWebService.afterCreateFromOpportunity(proposalSO.Id);
return callBackStatus;
}
CODE
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.