Retrieving Proposal Field Values from Opportunity
This API fetches the field values of the proposal object that are required to create a proposal from an opportunity. You can use the fetched values to create a new proposal.
API |
Signature |
---|---|
createProposalFromOpportunity |
webService static Apttus_Proposal__Proposal__c createProposalFromOpportunity(Id opptyId, Id recordTypeId) |
Request Parameter |
||
---|---|---|
Name |
Type |
Description |
opptyID | ID |
The ID of the opportunity you need to retrieve values from. |
recordTypeId | ID |
Record Type of the proposal object |
Response - Apttus_Proposal__Proposal__c |
||
---|---|---|
Field |
Type |
Description |
RecordTypeId | ID |
Record Type of the proposal object |
Apttus_Proposal__Proposal_Name__c | String |
The name of the proposal. |
Apttus_Proposal__Account__c | ID |
The Id of the account associated with the proposal. |
Apttus_Proposal__Opportunity__c | ID |
The Id of the opportunity associated with the proposal. |
Apttus_Proposal__Primary_Contact__c | ID |
The primary contact associated with the proposal. |
Apttus_Proposal__Description__c | String |
The description of the proposal. |
Apttus_Proposal__Primary__c | Boolean |
Indicates whether the proposal is the primary quote to update the related opportunity. |
Apttus_Proposal__ReadyToGenerate__c | Boolean |
Indicates whether the proposal is ready for generation. |
Apttus_Proposal__ReadyToPresent__c | Boolean |
Indicates whether the proposal is ready for presentation. |
OwnerId | ID |
The ID of the proposal object. |
CurrencyIsoCode | String |
The currency defined for the proposal. |
Code Sample
The sample code below enables you to retrieve the proposal field values of the opportunity associated with the ID that you provide. You can use the standard createRecord API to create the proposal.
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.
API Prerequisites
None.
Response/Request XML
Example RequestCreate Proposal
Use data from the Response to create the proposal. The following example uses the createRecord() method to create the Proposal object.
Example Request