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.

download

Adding Products to a Collaboration Request

This method adds products to an existing collaboration request. This global method is not an API. It can only be invoked in an Apex Code.

Method

Signature

addProductsToCollaboration

static Apttus_Config2.CollabStruct.AddProductCRResponseDO addProductsToCollaboration(Apttus_Config2.CollabStruct.AddProductCRRequestDO requestDO)

Parameters

Name

Type

Required?

Description

requestApttus_Config2.CollabStruct.AddProductCRRequestDO

Yes

The request data object.

Request Data Object - Apttus_Config2.CollabStruct.AddProductCRRequestDO

Field

Type

Description

collaborationRequestIdID

The id of the collaboration request to which you want add products.

lineItemIdsList

The list of line item IDs you want to add to the collaboration request

Response Data Object - Apttus_Config2.CollabStruct.AddProductCRResponseDO

Field

Type

Description

errorMessagesList

The list of errors occurred while adding products to the collaboration request.

hasErrorsBoolean

Indicates that the errors occurred while adding products to the collaboration request.

isSuccessBoolean

Indicated that the products are successfully added to the collaboration request.

Code Sample

The following sample enables you to add products to an existing collaboration request with a Collaboration ID. Provide a list of line item IDs of the products you want to add to the collaboration request. If the products are successfully added to the collaboration request, the API returns true, otherwise, the API returns the list of errors occurred while adding the products. 

/** * The below method demonstrates how to add a product in an existing collaboration request */ CollabStruct.AddProductCRRequestDO request = new CollabStruct.AddProductCRRequestDO(); request.collaborationRequestId = 'a3B1S0000005V3wUAE'; request.lineItemIds = new List<Id> {'a0a1S000005YwWj'}; CollabStruct.AddProductCRResponseDO response = QuoteCollaborationService.addProductsToCollaboration(request); if (!response.isSuccess) { system.debug(response.errorMessages); }