Response Data Object - CPQStruct.AcceptCustomerPOResponseDO
Field
Type
Description
CustomerPurchaseOrderSO
Standard Object
The response data object.
Response Data Object - CustomerPurchaseOrderSO
Field
Type
Description
IsSuccess
boolean
Specifies whether the order is finalized successfully.
Code Sample
The following enables you to accept an order for a valid customer purchase order with an Order ID.
// accept the order
CPQStruct.AcceptCustomerPORequestDO request = new CPQStruct.AcceptCustomerPORequestDO();
request.CustomerPOId = customerPO.Id;
CPQStruct.AcceptCustomerPOResponseDO result = CustomerPOWebService.acceptOrder(request);
system.debug(result.CustomerPurchaseOrderSO)