Delete Line Items from Cart Invocable Action

Use this action to delete a line item from a quote or an order based on specified inputs. Also, this action disconnects an existing asset item from a quote or an order. For example, a sales rep can use this action to discontinue the internet package service for a customer.

Required Editions

Available in: Lightning Experience
Available in: Enterprise, Unlimited, and Developer Editions

Industries CPQ API Used to Invoke Delete Line Items from Cart Invocable Action

  • deleteCartsItems

Input Values

Parameter description data type
cartId The ID of the quote or order record from which a line item must be deleted or disconnected. String
itemId The ID of the line item record to delete or disconnect from a line item. String

Output Values

Parameter description data type
error An error due to which the line item or product wasn’t deleted or disconnected. String
successMessage A message indicating whether the line item or product is deleted or disconnected. String

Example

JSON Request

cartId = {!cartId} (801Dn000000vROCIA2)
itemId = {!lineitemId} (802Dn000002xAjRIAU)
   

JSON Response Body

error (null)
successMessage (Successfully deleted.)