Conga Product Documentation

Welcome to the new doc site. Some of your old bookmarks will no longer work. Please use the search bar to find your desired topic.

Show Page Sections

download

Reverting Amended Customer Purchase Orders

This API undo or revert an amended Customer Purchase Order (Composite API). For example, You can roll back the changed order date to the previous date using this API.

API Details

API

Signature

undoAmendCustomerPO

webService static Apttus_Config2.CPQStruct.UndoAmendCustomerPOResponseDOundoAmendCustomerPO(Apttus_Config2.CPQStruct.UndoAmendCustomerPORequestDO)

Parameters

Name

Type

Description

request

Apttus_Config2.CPQStruct.UndoAmendCustomerPORequestDO

The request data object.

Request Data Object - Apttus_Config2.CPQStruct.UndoAmendCustomerPORequestDO

Field

Type

Required?

Description

CustomerPOId

ID

Yes

Unique identifier of the amended order.

API Response

Response Data Object - CPQStruct.UndoAmendCustomerPOResponseDO

Field

Type

Description

PreviousCustomerPurchaseOrderSO

Standard Data Object

The fields of the Previous Order Object.

Code Sample

The following sample allows you to roll back an amendment to an order.

//undoamend customerPurchaseOrder
CPQStruct.UndoAmendCustomerPORequestDO request = new CPQStruct.UndoAmendCustomerPORequestDO();
request.CustomerPOId = CustomerPOId;  
            
CPQStruct.UndoAmendCustomerPOResponseDO result = CustomerPOWebService.undoAmendCustomerPO(request);    
system.debug(result.PreviousCustomerPurchaseOrderSO)