---
schema_version: "1"
id: a01ed2ab024b874ad4cf4134c1207026527b6bb5f92b522f386d12e9e81ca3de
title: Get Group Census Members 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.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.insurance_developer_guide.meta/insurance_developer_guide/actions_obj_get_group_census_members.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: ea3f9805595d24602fce00aa6e29e2e25577ad865d4e7b67adf68038f26abc32
description: Get the group census member records from the content document in the specified asynchronous bulk request item record.
---
# Get Group Census Members Action

Get the group census member records 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, validates the data, identifies duplicate records, and returns structured member records for saving or further processing. It returns all transformed member records along with detailed error information for any records that fail validation.

This action is available in API version 66.0 and later.

## Supported REST HTTP Methods

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

Where XX.X is the latest API version.

**Formats**: JSON, XML

**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="d409952e100">Input</th>

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

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

            </tr>

          </thead>

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

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

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

                  <li class="li">contentDocumentVersion—Version number of
                    the content document</li>

                  <li class="li">csvColumnMapping—Mapping of CSV columns
                    to target field names</li>

                  <li class="li">duplicateDetectionFields—List of fields
                    that are used to detect duplicates</li>

                  <li class="li">groupCensusId—ID of the parent group
                    census</li>

                  <li class="li">csvHeader—Header row from the CSV
                    file</li>

                  <li class="li">startRowNumber—First CSV row to
                    process</li>

                  <li class="li">endRowNumber—Last CSV row to process</li>

                  <li class="li">duplicateRowNumbersList—List of row
                    numbers identified as duplicates</li>

                </ul>

              </td>

            </tr>

          </tbody>

        </table>

## Outputs

| Output | Type | Description |
| --- | --- | --- |
| duplicateDetectionKeysList | string | Comma-separated list of group census member fields that are used to identify unique group census member records. It's shown if duplicate detection fields are configured in the request. |
| errorsData | Apex-defined | Errors for the records that failed validation or parsing. Each error includes the row number, error code, error message, and field-level details. |
| groupCensusId | string | ID of the group census record that's associated with the group census member records that the action returned. |
| groupCensusMembers | sobject | Group census member records that the action returns. Each record contains mapped field values from CSV columns. Records with errors include an error field with the error message. Maximum number of records that are returned is 2000. |

## Example

**POST**

This sample request is for the Get Group Census Members action.

{
  "inputs": \[
    {
      "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"
    }
  \]
}

This sample response is for the Get Group Census Members action.

\[
  {
    "actionName": "getGroupCensusMembers",
    "errors": null,
    "isSuccess": true,
    "outputValues": {
      "duplicateDetectionKeysList": \[\],
      "groupCensusId": "0rfSG0000000zY9YAI",
      "groupCensusMembers": \[
        {
          "Email": "ross.farley\_0001@insgroup.co.in",
          "AssociationWithPrimaryMbr": "Self",
          "FirstName": "Ross",
          "Lastname": "Farley",
          "Country": "Health Comprehensive|Chronic Disease",
          "Gender": "Male",
          "Birthdate": "08/07/1981"
        },
        {
          "Email": "teagan.wallace\_0001@gmail.com",
          "AssociationWithPrimaryMbr": "Spouse",
          "FirstName": "Teagan",
          "Lastname": "Wallace",
          "Country": "Health Comprehensive|Critical Illness & Surgery",
          "Gender": "Female",
          "Birthdate": "08/07/1986"
        }
      \]
    }
  }
\]