Action Params Callback Class
- Submitting the cart for approval
- Generating document
- Analyzing the deal
- Retrieving Advanced Approval URL for selected line item
To use the Action Params Callback you must create a custom Apex class that implements the Apttus_Config2.CustomClass.IActionParamsCallback interface and register the custom apex class with Action Params Callback Class. You must write your custom logic in the custom apex class.
The following methods are available in the Apttus_Config2.CustomClass.IActionParamsCallback interface.
Method | Signature | Description |
---|---|---|
createActionParams | Apttus_Config2.CustomClass.ActionParams createActionParams(Apttus_Config2.ProductConfiguration) | You can use this method to create action parameters for the cart object. This method is invoked when you:
|
The following table lists the response parameters of the Apttus_Config2.CustomClass.IActionParamsCallback.
Response Parameters:Apttus_Config2.CustomClass.ActionParams | ||
---|---|---|
Name | Type | Description |
AccountId |
| The ID of the Account. |
AccountIds |
| The set of Account ID you want to use to filter the result. CPQ ignores the AccountId field if thisfield is used. |
ActionName |
| The name of the action. |
ActivateOrder |
| Indicates whether to activate the order or not. |
ApprovalCtxType |
| The Context Type of Approval. |
ApprovalMode |
| The Mode of Approval |
ApprovalReason |
| The reason of Approval. |
ApprovalType |
| The type of Approval. |
AssetLineItems |
| The list of asset line items |
BundleId |
| The IDs of the bundle product. |
CartIds |
| The list of cart IDs. |
CartSyncMode |
| The Sync Mode of the cart. For example, enum SyncMode {SYNC, FINALIZE}. |
ConfigurationId |
| The ID of the configuration in the proposal. |
CurrentState |
| The current state |
CustomParams |
| The custom parameter that you have defined. |
FinalizeClass |
| The callback class that is executed when you finalize the cart. |
Flow |
| The flow used in the configuration |
IsAngular |
| Indicates whether the user interface is Angular. |
IsDraft |
| Indicated whether the proposal is in draft stage. |
LaunchState |
| The launch state. |
LineItemIds |
| The set of line item IDs. |
LineNumber |
| The line number of the products. |
LocationIds |
| The set of location IDs. |
Method |
| The method of configuration. |
Mode |
| The mode of the configuration. |
OrderLineItems |
| The list of order line items. |
OriginalOrderSO |
| The Original Order SObject |
OutputFormat |
| The output format of the generated document. You can use the following values:
|
ProductIDs |
| The list of product IDs. |
ProtectionLevel |
| The protection level for the parameters you created. |
RequestId |
| The request ID of the configuration. |
ReturnId |
| The record ID of the business object. |
ReturnPage |
| The return page of the business object. |
SessionId |
| The ID of the session. |
SessionUrl |
| The URL of the session. |
TemplateName |
| The name of the template in the proposal. |
Example