---
schema_version: "1"
id: 4ecb91cda920e20cb87e35761789dda265e2eeb53d0c035274bb481a8680f62a
title: groupRollup Method
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/industries/cme/guides/comms-t-grouprollup-method.md
canonical_url: https://developer.salesforce.com/docs/industries/cme/guide/comms-t-grouprollup-method.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: abe3eb81c918b351339374e30fc51f7e3148561e07ddb6bada3ea4d89d352407
products:
  - Communications, Media, Energy and Utilities APIs (Managed Package)
  - Industries Developer Documentation
---
# groupRollup Method

Calculates the pricing rollups (OneTime, Recurring, Usage) for a group.

<!-- 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                                       |
| ------------ | ------------------------------------------------- | ------------------------------------------------- |
| parentId     | Required                                          | Opportunity ID.                                   |
| contextId    | Required                                          | Parent cart Id (Master/Enterprise Quote/Order Id) |
| groupId      | Required                                          | Group ID.                                         |
| groupCartId  | Optional: Required only if groupId is not passed. | Group Cart Id.                                    |
| groupFields  | Optional                                          | Group Field list.                                 |
| masterFields | Optional                                          | Master Field list.                                |
| quoteFields  | Optional                                          | Quote Field list.                                 |

## Output Parameters

| Parameter | Description           |
| --------- | --------------------- |
| message   | In case of any error. |


## Example 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.-->

```
{"groupId": "a3O3t000003ADvzEAG", "contextId": "0Q03t000001ugKu", "parentId": "0063t00000tPwO7"}
```

## Example 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.-->

```
{"message": "Not able to find out Group"}"error":"OK"}
```
