---
schema_version: "1"
id: 469c7a7176f69dcff660081fa48eb581a791063b1a932ecd527b97479ad20f5a
title: Get Group Census Members and Plans Action
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/insurance_developer_guide/actions_obj_get_group_census_members_and_plans.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.insurance_developer_guide.meta/insurance_developer_guide/actions_obj_get_group_census_members_and_plans.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 7b87e764bfd20e8b897140dc168947de0a91b21554b6f62b66c5b9a322e92482
description: Get the group census member records and associated plans from the content document in the specified asynchronous bulk request item record.
---
# Get Group Census Members and Plans Action

Get the group census member records and associated plans from the content document in the specified asynchronous bulk request item record.

The action processes bulk member data that are uploaded through census management workflows. This action validates the data, identifies duplicates, and returns structured member records for further processing. This action returns all transformed records, along with detailed error information for any records that fail validation.

This action is available in API version 65.0 and later.

## Supported REST HTTP Methods

**URI**: /services/data/vXX.X/actions/standard/getGroupCensusMembersAndPlans

Where XX.X is the latest API version.

**Formats**: JSON

**HTTP Methods**: POST

**Authentication**: Authorization: Bearer TOKEN

Where TOKEN is your OAuth access token.

## Inputs

<table class="featureTable sort_table" summary="">



          <thead class="thead sorted" align="left">
            <tr>
              <th class="featureTableHeader  " id="d410559e100">Input</th>

              <th class="featureTableHeader  " id="d410559e103">Type</th>

              <th class="featureTableHeader  " id="d410559e106">Description</th>

            </tr>

          </thead>

          <tbody class="tbody">
            <tr>
              <td class="entry" headers="d410559e100" data-title="Input"><span class="keyword parmname">asyncBulkRequestItem</span></td>

              <td class="entry" headers="d410559e103" data-title="Type">sobject</td>

              <td class="entry" headers="d410559e106" data-title="Description">Required. Asynchronous bulk request item record that contains the metadata
                about the CSV upload. This property must have the <samp class="codeph nolang">AdditionalInformation</samp> field with serialized JSON that contains these
                details.
                <ul class="ul bulletList">
                  <li class="li">
                    <samp class="codeph nolang">contentDocumentId</samp>—ID of content
                    document
                  </li>

                  <li class="li">
                    <samp class="codeph nolang">contentDocumentVersion</samp>—Version of
                    content document
                  </li>

                  <li class="li">
                    <samp class="codeph nolang">csvColumnMapping</samp>—Map of CSV column to
                    field name
                  </li>

                  <li class="li">
                    <samp class="codeph nolang">duplicateDetectionFields</samp>—List of fields
                    for duplicate detection
                  </li>

                  <li class="li">
                    <samp class="codeph nolang">groupCensusId</samp>—Parent Group Census
                    ID
                  </li>

                  <li class="li">
                    <samp class="codeph nolang">csvHeader</samp>—CSV header row
                  </li>

                  <li class="li">
                    <samp class="codeph nolang">startRowNumber</samp>—Starting row to
                    process
                  </li>

                  <li class="li">
                    <samp class="codeph nolang">endRowNumber</samp>—Ending row to process
                  </li>

                  <li class="li">
                    <samp class="codeph nolang">duplicateRowNumbersList</samp>—Pre-identified
                    duplicate rows
                  </li>

                </ul>

              </td>

            </tr>

          </tbody>

        </table>

## Outputs

| Output | Type | Description |
| --- | --- | --- |
| duplicateDetectionKeysList | string | Comma-separated list of group census member fields that can be used to identify unique group census member records. This property is returned if duplicate detection fields are configured in the request. |
| errorsData | Apex-defined | Error records that occurred during the retrieval of group census member and plan records. |
| groupCensusId | string | Salesforce ID of the GroupCensus record which these members belong to. This property is used to associate members with their parent census. |
| groupCensusMembers | sobject | Collection of transformed GroupCensusMember SObject records that are parsed from the CSV file. Each record includes field values that are mapped from the corresponding CSV columns. Records with errors include an error field containing the error message. The maximum limit size is 2000. |
| groupCensusMemberPlans | sobject | Collection of plan records for group census members. |
| shouldExecuteConfigurationRule | boolean | Indicates whether the product configuration rules must be executed for member plans in the enrollment census ( true ) or not ( false ). |

## Example

Sample Request

{
  "AdditionalInformation": {
    "employeeBulkRequestInfo": {
      "groupCensusId": "0rfSG0000000vclYAA",
      "contentDocumentName": "Archit50Records With groupClass - Archit50Records With groupClass (1)",
      "contentDocumentId": "069SG000004lwPdYAI",
      "contentDocumentVersion": "068SG000004PIp3YAG",
      "duplicateDetectionFields": \[
        "Gender",
        "FirstName",
        "Lastname",
        "AssociationWithPrimaryMbr",
        "GroupCensusId"
      \],
      "batchSize": null,
      "csvColumnMapping": {
        "First Name": "FirstName",
        "Last Name": "Lastname",
        "Gender": "Gender",
        "Birthdate": "Birthdate",
        "SmokerStatus": "SmokerStatus",
        "Relationship": "AssociationWithPrimaryMbr",
        "Group Class": "GroupClassName"
      },
      "executeRules": false
    },
    "startRowNumber": 1,
    "endRowNumber": 27,
    "startByteOffset": 83,
    "endByteOffset": 1717,
    "csvHeader": "First Name,Last Name,Gender,Birthdate,Relationship,SmokerStatus,Group Class,Errors",
    "duplicateRowNumbersList": \[\],
    "shouldExecuteConfigurationRule": false
  },
  "Id": "18cSG0000003DgfYAE"
}

Sample Response

\[
  {
    "actionName": "getGroupCensusMembersAndPlans",
    "errors": null,
    "isSuccess": true,
    "outputValues": \[
      {
        "GroupClassName": "Test\_MGR",
        "AssociationWithPrimaryMbr": "Self",
        "FirstName": "Employee1",
        "Lastname": "Salesforce1",
        "Gender": "Male",
        "Birthdate": "1987-12-04",
        "SmokerStatus": "Tobacco"
      },
      {
        "AssociationWithPrimaryMbr": "Spouse",
        "FirstName": "Employee2",
        "Lastname": "Salesforce2",
        "Gender": "Female",
        "Birthdate": "1982-11-30",
        "SmokerStatus": "Tobacco"
      },
      {
        "AssociationWithPrimaryMbr": "Child",
        "FirstName": "Employee3",
        "Lastname": "Salesforce3",
        "Gender": "Male",
        "Birthdate": "1988-11-18",
        "SmokerStatus": "NonTobacco"
      }
    \]
  }
\]