---
schema_version: "1"
id: 1029f1b92450bb00f5eeefc1c13fd8ce45b0750517d4c59a995c28d5ce875188
title: refreshCartMSMessage Method
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/industries/cme/guides/comms-t-refreshcartmsmessage-method.md
canonical_url: https://developer.salesforce.com/docs/industries/cme/guide/comms-t-refreshcartmsmessage-method.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: 2eccac1ee0ea5ee7e76883776460f0c3c090c8b7c09063babf35fb29b38da6fb
products:
  - Communications, Media, Energy and Utilities APIs (Managed Package)
  - Industries Developer Documentation
---
# refreshCartMSMessage Method

Regenerates all the messages of a group cart.

<!-- Section title is the name of the method followed by "Method". If appropriate, precede the method name with the class name and a colon.-->

## Class

<!-- broken link-->

<!-- Link(s) to the class(es) to which this method belongs. If more than one class implements the same interface, use an itemized list. Don't use a link if the class itself isn't documented for users, but do list the class name.-->


## Input Parameters

<!-- If this method has separate input and output parameters, split this section into two sections titled "Input Parameters" and "Output Parameters". Some methods of classes that implement VlocityOpenInterface2 might require an "Options Parameters" section as well.-->

| Parameter | Required                   | Description                                                                                                                            |
| --------- | -------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- |
| cartId    | Required                   | Any cart, usually a group cart.                                                                                                        |
| validate  | Optional: Defaults to true | True: It executes validation for a given cart ID and updates the multi service messages. False: It updates the multi service messages. |

## Output Parameters

JSON that contains action refreshGroupMSMessage. For more details, see the sample output.

## Input Data

<!-- This is usually JSON, but it could be XML or a single value. For methods of classes implementing VlocityOpenInterface2 that have options parameters, include those here.-->

```
{"cartId":"0Q05g000000x5f3CAA"}
```

## Output Data

<!-- This is usually JSON, but it could be XML or a single value. Salesforce uses Return Type, but this takes care of that.-->

```
{"totalSize":0,"actions":{"refreshgroupmsmessage":{"rest":{"params":{},"method":null,"link":null},"remote":{"params":{"methodName":"refreshGroupMSMessage","groupId":"a3W5g000000LNyxEAG"}},"client":{"params":{}}}}}
```
