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.

MethodSignature
addProductsToCollaborationstatic Apttus_Config2.CollabStruct.AddProductCRResponseDO addProductsToCollaboration(Apttus_Config2.CollabStruct.AddProductCRRequestDO requestDO)
Parameters
NameTypeRequired?Description
requestApttus_Config2.CollabStruct.AddProductCRRequestDOYesThe request data object.
Request Data Object - Apttus_Config2.CollabStruct.AddProductCRRequestDO
FieldTypeDescription
collaborationRequestIdIDThe 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
FieldTypeDescription
errorMessagesListThe list of errors occurred while adding products to the collaboration request.
hasErrorsBooleanIndicates that the errors occurred while adding products to the collaboration request.
isSuccessBooleanIndicated 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); 
	}
CODE