This API reverts the cancellation of a customer purchase order.

API Details

APISignature
undoCancelCustomerPOwebService static Apttus_Config2.CPQStruct.UndoCancelCustomerPOResponseDOundoCancelCustomerPO(Apttus_Config2.CPQStruct.UndoCancelCustomerPORequestDO)



Parameters
NameTypeDescription
request

Apttus_Config2.CPQStruct.UndoCancelCustomerPORequestDO

The request data object.



Request Data Object - Apttus_Config2.UndoCancelCustomerPORequestDO
FieldTypeRequired?Description
CustomerPOIdIDYesUnique identifier of the latest version of cancelled customer purchase order.


API Response

Response Data Object - CPQStruct.UndoCancelOrderResponseDO
FieldTypeDescription

PreviousCustomerPurchaseOrderSO

Standard Data ObjectThe fields of the previous customer purchase order object.

Code Sample

The following sample allows you to roll back cancellation of a customer purchase order.

//undocancel customerPurchaseOrder
CPQStruct.UndoCancelCustomerPORequestDO request = new CPQStruct.UndoCancelCustomerPORequestDO();
request.CustomerPOId = CustomerPOId;

CPQStruct.UndoCancelCustomerPOResponseDO result = CustomerPOWebService.undoCancelCustomerPO(request);
system.debug(result.PreviousCustomerPurchaseOrderSO);
CODE