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.

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.

cartIdIdThe ID of the cart for which CLIs need to be refreshed.

Response Parameters

Field

Type

Description

successBoolean

Indicates whether the CLI refresh was successful.

refreshedCountIntegerNumber of CLIs refreshed.
messageStringStatus 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>);