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 |
request | Apttus_Config2.CollabStruct.AddProductCRRequestDO | Yes | The request data object. |
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.