---
schema_version: "1"
id: cb7f0edbd10b07a1b90ec7253575151ccbe70825346c2ed5bf2462737c528c8e
title: Additional Line Item Actions
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/ind/264-0-0/comms_additional_line_item_actions.md
canonical_url: https://help.salesforce.com/s/articleView?id=ind.comms_additional_line_item_actions.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 76e8848dea189de2b3e191f8a1882e044f1c12a6619abadba1f6fe01cbf46fc2
description: Learn how to define and implement custom actions for line items in Industries CPQ (Configure, Price, Quote) using Lightning Web Components (LWC). This setup enables users to trigger specific actions on individual line items within the cart, tailored to business requirements.
products:
  - Communications
  - Media
  - Energy and Utilities
release: "264"
---
# Additional Line Item Actions

Learn how to define and implement custom actions for line items in Industries CPQ (Configure, Price, Quote) using Lightning Web Components (LWC). This setup enables users to trigger specific actions on individual line items within the cart, tailored to business requirements.

Industries CPQ offers customization of line items through Lightning Web Components (LWC). By defining custom actions, businesses can enable users to perform targeted operations directly from the cart interface. These actions are specified using JSON, which defines the action label and event name to trigger within the LWC.

LineItem Custom Actions in JSON: The section defines custom actions in the JSON structure `AdditionalCustomJson`. This JSON structure specifies the custom actions, including labels for each action and the name of the event to be triggered when that action is selected.

`{   "lineItemCustomActions": [     {       "label": "Line Item Action 1",       "name": "lineItemAction1"     },     {       "label": "Line Item Action 2",       "name": "lineItemAction2"     }   ] }`

- The `lineItemCustomActions` array contains objects, each representing a custom action that can be performed on a line item in the CPQ cart. Each object contains two properties.
- `label` specifies the display name for each action in the cart UI. For example, Line Item Action 1 might display as a button or option users can click.
- `name` represents the event name that triggers custom code in the LWC. Each name here should be unique and should match event handlers defined in the custom LWC component.![Additional line item action](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-ind-comms_media_energy_managed-264-0-0-production-enus/ff4079f6-a384-475c-b863-578bbbb0ef9b/comms_media_energy_managed/images/comms_apply_customizations.png)

When you select a custom action, for example, Line Item Action 1, the associated event is triggered in the LWC. This event corresponds to the name defined in the JSON configuration and can be used to execute custom logic. The `name` property in the JSON structure matches the event handler method in the LWC. This approach ensures that each line item action performs the correct operation as defined by the event handler in the LWC.

- **[Create a Custom LWC Component for Event Handling](https://help.salesforce.com/s/articleView?id=ind.comms_create_a_custom_lwc_component_for_event_handling.htm&release=264.0.0&type=5)**  
    Learn how to define and implement custom actions on line items in Standard CPQ (Configure, Price, Quote) using Lightning Web Components (LWC). This allows users to trigger custom actions on cart line items tailored to business needs.
- **[Handling Custom Events and Creating Modals in LWC](https://help.salesforce.com/s/articleView?id=ind.comms_handling_custom_events_and_creating_modals_in_lwc.htm&release=264.0.0&type=5)**  
    This topic explains how to handle custom events in Salesforce Lightning Web Components (LWC) and create modals that are triggered by these events. You'll learn how to write LWC code to listen for events, trigger actions, and display modals in response to those events.
- **[Add a Component to cpqCartTab](https://help.salesforce.com/s/articleView?id=ind.comms_add_a_component_to_cpqcarttab.htm&release=264.0.0&type=5)**  
    Learn how to add a custom component to the cpqCartTab in Salesforce CPQ using the additionalCustomJson parameter.