Request Data Object - Apttus_Config2.CollabStruct.AddProductCRRequestDO
Field
Type
Description
collaborationRequestId
ID
The id of the collaboration request to which you want add products.
lineItemIds
List
The list of line item IDs you want to add to the collaboration request
Response Data Object - Apttus_Config2.CollabStruct.AddProductCRResponseDO
Field
Type
Description
errorMessages
List
The list of errors occurred while adding products to the collaboration request.
hasErrors
Boolean
Indicates that the errors occurred while adding products to the collaboration request.
isSuccess
Boolean
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);
}