---
schema_version: "1"
id: 09bf3b1ad561ba6ede0cdef4e5d031b4db9628c3bf961993d55c8af5ae767b65
title: refreshCartMSMessage Method
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/ind/264-0-0/comms_t_refreshcartmsmessage_method_215820.md
canonical_url: https://help.salesforce.com/s/articleView?id=ind.comms_t_refreshcartmsmessage_method_215820.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: a91d721c1f015ed88c49f35228edc16d94b4d0536c490d911be837858f335d06
description: Regenerates all the messages of a group cart.
products:
  - Communications
  - Media
  - Energy and Utilities
release: "264"
---
# refreshCartMSMessage Method

Regenerates all the messages of a group cart.

## Class

## Input Parameters

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small ">
        <colgroup>
          <col>
          <col>
          <col>
        </colgroup>
        <thead class="slds-text-title_caps ">
          <tr class="">
            <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d381758e44">
              <p style="margin-bottom:0;">Parameter</p>
            </th>
            <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d381758e50">
              <p style="margin-bottom:0;">Required</p>
            </th>
            <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d381758e56">
              <p style="margin-bottom:0;">Description</p>
            </th>
          </tr>
        </thead>
        <tbody>
          <tr class="">
            <td data-label="Parameter" class="slds-cell-wrap" style="vertical-align:top;" headers="d381758e44 ">
              <p style="margin-bottom:0;">cartId</p>
            </td>

            <td data-label="Required" class="slds-cell-wrap" style="vertical-align:top;" headers="d381758e50 ">
              <p style="margin-bottom:0;">Required</p>
            </td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d381758e56 ">
              <p style="margin-bottom:0;">Any cart, usually a group cart.</p>
            </td>

          </tr>
          <tr class="">
            <td data-label="Parameter" class="slds-cell-wrap" style="vertical-align:top;" headers="d381758e44 ">
              <p style="margin-bottom:0;">validate</p>
            </td>

            <td data-label="Required" class="slds-cell-wrap" style="vertical-align:top;" headers="d381758e50 ">
              <p style="margin-bottom:0;">Optional: Defaults to true</p>
            </td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d381758e56 ">
              <p>True: It executes validation for a given cart ID and updates the
                multi service messages.</p>
              <p style="margin-bottom:0;">False: It updates the multi service
                messages.</p>
            </td>

          </tr>
        </tbody>
      </table>

## Output Parameters

JSON that contains action refreshGroupMSMessage. For more details, see the sample output.

## Input Data

```
{"cartId":"0Q05g000000x5f3CAA"}
```

## Output Data

```
{"totalSize":0,"actions":{"refreshgroupmsmessage":{"rest":{"params":{},"method":null,"link":null},"remote":{"params":{"methodName":"refreshGroupMSMessage","groupId":"a3W5g000000LNyxEAG"}},"client":{"params":{}}}}}
```