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.

afterCreateFromOpportunitywebService static Boolean afterCreateFromOpportunity(Id proposalId)

Request Parameter
proposalIdIDThe ID of the existing proposal.
Response Parameters

isSuccessBooleanIndicates 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 proposalID) {
    Boolean callBackStatus = false;
    Apttus_Proposal__Proposal__c proposalSO = [SELECT Id 
               FROM Apttus_Proposal__Proposal__c 
               WHERE Name =: proposalID LIMIT 1];
    callBackStatus  = Apttus_Proposal.ProposalWebService.afterCreateFromOpportunity(proposalSO.Id);
    return callBackStatus;

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.

API Prerequisites

Response/Request XML

Example Request (click to expand)

<soapenv:Envelope xmlns:soapenv="" 

Example Response (click to expand)