---
schema_version: "1"
id: 1871faffb7bdaa3fd336fde42dc9376b1071acbf811cb9ca3b0adce0c3f0eada
title: Create Group Invocable Action
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/ind/264-0-0/comms_create_group_invocable_action.md
canonical_url: https://help.salesforce.com/s/articleView?id=ind.comms_create_group_invocable_action.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: c0e83d16a5c3f8167f7ba25d4e8c8d0ef2411c1e3cdb1cc7421074b9a0d5d1c8
description: Use this action to create a group for a specific quote and assign members to it, based on specified inputs. For example, a sales rep can group multiple store locations together to apply a bulk discount.
products:
  - Communications
release: "264"
---
# Create Group Invocable Action

Use this action to create a group for a specific quote and assign members to it, based on specified inputs. For example, a sales rep can group multiple store locations together to apply a bulk discount.

### Required Editions

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small edition"><colgroup><col style="width:100%"></colgroup><tbody><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Available in: Lightning Experience</td></tr><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Available in: <strong>Enterprise</strong>, <strong>Unlimited</strong>, and <strong>Developer</strong> Editions</td></tr></tbody></table>

## Input Values

  
| Parameter | Description | Data Type |
| --- | --- | --- |
| quoteId | The ID of the quote. | String |
| groupName | The name of the group to create. | String |
| memberIds | A comma-separated list of member IDs. | List of String |
| memberType | The type of members. | String |
| expectedMemberCount | The expected number of members. | Integer |
| currentMemberCount | The current number of members. | Integer |

## Output Values

  
| Parameter | Description | Data Type |
| --- | --- | --- |
| quoteGroup | The created quote group record. | String |
| errorMessage | A message explaining why the data couldn't be created. | String |

## Example

JSON Request

```json
{
  "inputs": [
    {
      "quoteId": "0Q0DX0000007jXl0AI",
      "groupName": "VM Group 3",
      "checkAsyncJobStatus": true,
    }
  ]
}
```

JSON Response Body

```json
[
    {
        "actionName": "devops001gs0__B2BCmexCreateGroupInvocable",
        "errors": null,
        "invocationId": null,
        "isSuccess": true,
        "outcome": null,
        "outputValues": {
            "error": null,
            "quoteGroup": {
                "attributes": {
                    "type": "devops001gs0~QuoteGroup~c",
                    "url": "/services/data/v65.0/sobjects/devops001gs0~QuoteGroup~c/a4IDX0000000a4S2AQ"
                },
                "Id": "a4IDX0000000a4S2AQ",
                "Name": "VM Group 3",
                "devops001gs0~QuoteId~c": "0Q0DX0000007jXl0AI",
                "devops001gs0~ExpectedMemberCount~c": null
            }
        },
        "sortOrder": 0,
        "version": 1
    }
]
```