---
schema_version: "1"
id: 7c226edd5f0892bfe7b929dd1381251fd8ccc9b40d0c38a02593093d26b728a6
title: ConnectApi.CartMessagesSummary
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/apexref/apex_connectapi_output_cart_messages_summary.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_connectapi_output_cart_messages_summary.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 71472d6408ed4beeb7e71246eeb11378785d93379ee3aa853385fcc5a52a7e22
description: Cart messages summary.
---
# ConnectApi.CartMessagesSummary

Cart messages summary.

| Property Name | Type | Description | Available Version |
| --- | --- | --- | --- |
| errorCount | Integer | In ConnectApi.CartItemResult, the count of messages with the Error severity level. | 49.0 |
| hasErrors | Boolean | Specifies whether there are messages related to the entity (true) or not (false). | 49.0 |
| limitedMessages | [List](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_list.htm#apex_methods_system_list "Contains methods for the List collection type.")<[ConnectApi.​CartMessage](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_connectapi_output_cart_message.htm "Cart message.")\> | In ConnectApi.CartItemResult, a limited list of messages related to the cart item. In ConnectApi.CartSummary, each message can be related to the cart or to another cart-related entity. | 49.0 |
| relatedEntityId | String | In ConnectApi.CartItemResult, the ID of the related cart item. In ConnectApi.CartSummary, each message can be related to the cart or to another cart-related entity. | 49.0 |
| totalLineItems​WithErrors | Integer | In ConnectApi.CartItemResult, either null if the cart item has no errors or 1 if the cart item has errors. In ConnectApi.CartSummary, the total number of product line items that contain errors. | 50.0 |

#### See Also

- [ConnectApi.AbstractCartItem](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_connectapi_output_abstract_cart_item.htm "A cart item.")