Refresh Cost Line Items
This API refreshes cost line items (CLIs) for a cart. The process removes existing CLIs and creates new ones based on the cost model attached to the price list.
|
API |
Signature |
|---|---|
| refreshCostLineItems |
static void refreshCostLineItems(Id configId, List lineItemIds) |
|
Request Parameter | ||
|---|---|---|
|
Name |
Type |
Description |
| lineItemIdList(Optional) | List | List of specific line item IDs to refresh. |
| cartId | Id | The ID of the cart for which CLIs need to be refreshed. |
|
Response Parameters | ||
|---|---|---|
|
Field |
Type |
Description |
| success | Boolean |
Indicates whether the CLI refresh was successful. |
| refreshedCount | Integer | Number of CLIs refreshed. |
| message | String | Status message or error. |
Code Sample
The sample code below enables you to refresh cost line items. After the API is executed, the collaboration request is created.
Apttus_Config2.QuoteCollaborationService.refreshCostLineitems('<CARTID>');
Apttus_Config2.QuoteCollaborationService.refreshCostLineitems('<CARTID>', <LineItemIdList>);
