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

Cloning Customer Purchase Orders

This API clones a Customer Purchase Order in Draft status. Changes the status of the Customer Purchase Order and Purchase Order Items to Accepted.

API Details

API

Signature

acceptOrder

webService static Apttus_Config2.CPQStruct.CloneCustomerPOResponseDO CloneOrder(Apttus_Config2.CPQStruct.CloneCustomerPORequestDO)

Parameters

Name

Type

Required?

Description

request

Apttus_Config2.CPQStruct.CloneCustomerPORequestDO

Yes

The request data object.

Request Data Object -

Apttus_Config2.CPQStruct.CloneCustomerPORequestDO

Field

Type

Required?

Description

CustomerPOId

ID

Yes

Unique identifier of Customer Purchase OrderObject to be cloned.

API Response

Response Data Object - CPQStruct.AcceptCustomerPOResponseDO

Field

Type

Description

CloneCustomerPurchaseOrderSO

Apttus_Config2__CustomerPurchaseOrder__c

The customer purchase orders object.

ClonePurcahseOrderItems

List<Apttus_Config2__CustomerPOItem__c>

List of purchase order line items.

Code Sample

The following enables you to clone an order for a valid customer purchase order with an Order ID.

Apttus_Config2.CPQStruct.CloneCustomerPORequestDO request = new Apttus_Config2.CPQStruct.CloneCustomerPORequestDO();
        request.CustomerPOId = originalOrderId;

        // create the clone response
        Apttus_Config2.CPQStruct.CloneCustomerPOResponseDO response = new Apttus_Config2.CPQStruct.CloneCustomerPOResponseDO();