UndoCancelOrder()

Revert the cancellation of an order.

For more information on how an order and its line items are affected when you revert a cancelled order, refer to the Order Management on Salesforce User Guide.

API Details

Parameters
NameTypeDescription
Request

Apttus_Config2.CPQStruct.UndoCancelOrderRequestDO

The request data object.
Request Data Object - Apttus_Config2.CPQStruct.UndoCancelOrderRequestDO
FieldTypeRequired?Description
orderIdIDYesUnique identifier of the cancelled order.

API Response

Response Data Object - CPQStruct.UndoCancelOrderResponseDO
FieldTypeDescription

PreviousOrderSO

Standard Data ObjectThe fields of the Previous Order Object.

Code Sample

The following API lets you undo or revert the cancelled order.

Apttus_Config2.CPQStruct.UndoCancelOrderRequestDO UndoCancelrequest = new Apttus_Config2.CPQStruct. UndoCancelOrderRequestDO();
UndoCancelrequest.orderid=Cancel_Response.CancelOrderSO.id; 
Apttus_Config2.CPQStruct.UndoCancelOrderResponseDO UndoCancel_Response= Apttus_Config2.OrderWebService.undoCancelOrder (UndoCancelrequest); 
system.debug('OrderID_OLD_Version - '+UndoCancel_Response.PreviousOrderSO.id);/** returns the OrderId of the previous version  **/
CODE