---
schema_version: "1"
id: 9505c1bf29eec1d01977c8e464b264479359d69f915525e2c12eb4210fc4af10
title: Validate 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_validate_group_census_members.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.insurance_developer_guide.meta/insurance_developer_guide/actions_obj_validate_group_census_members.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 8dc81c4dbdeb6a4346e8a4bad78a2d08f56b91065321dc95262dff429280843d
description: Validate the specified group census member records and assign default values to the specified fields.
---
# Validate Group Census Members Action

Validate the specified group census member records and assign default values to the specified fields.

This action is available in API version 65.0 and later.

## Supported REST HTTP Methods

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

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

| Input | Type | Description |
| --- | --- | --- |
| duplicateDetectionKeysList | string | Comma-separated list of field names that are used to identify the unique group census member records. For example, FirstName , LastName , GroupCensusId , and AssociationWithPrimaryMbr . |
| groupCensusId | string | ID of the parent group census record that's associated with the group census member records. |
| groupCensusMembers | sobject | Collection of group census member records that must be validated. Maximum list size is 2000. |

## Outputs

| Output | Type | Description |
| --- | --- | --- |
| errorsData | Apex-defined | Details of the validation errors that occurred while validating the group census member records. Maximum limit is 2000. |
| validatedGroupCensusMembers | sobject | Collection of group census member records that are validated and assigned with default values. Records with validation errors aren't shown. Maximum limit is 2000. |

## Example

Sample Request

{
  "inputs": \[
    {
      "groupCensusId": "0rfDR0000000Cn6YAE",
      "groupCensusMembers": \[
        {
          "Name": "RossFarley",
          "FirstName": "Ross",
          "Lastname": "Farley",
          "Gender": "Male",
          "GroupClassName": "Manager",
          "Email": "ross.farley\_0001@insgroup.co.in",
          "AssociationWithPrimaryMbr": "Self"
        },
        {
          "Name": "Fakeem Huber",
          "FirstName": "Fakeem",
          "Lastname": "Huber",
          "Gender": "Male",
          "GroupClassName": "Associate",
          "Email": "fakeem.huber\_0432@insgroup.co.in",
          "AssociationWithPrimaryMbr": "Self"
        }
      \]
    }
  \]
}

Sample Response

{
  "validatedGroupCensusMembers": \[
    {
      "attributes": {
        "type": "GroupCensusMember"
      },
      "Email": "ross.farley\_0001@insgroup.co.in",
      "AssociationWithPrimaryMbr": "Self",
      "FirstName": "Ross",
      "MemberKey": "a66e329bd537b9b0be9d04f326eeed94",
      "RelationshipToPrimaryMember": "Self",
      "Lastname": "Farley",
      "Gender": "Male",
      "GroupClassId": "0rEDR000000085k2AA",
      "GroupCensusId": "0rfDR0000000Cn6YAE",
      "Name": "RossFarley"
    },
    {
      "attributes": {
        "type": "GroupCensusMember"
      },
      "Email": "fakeem.huber\_0432@insgroup.co.in",
      "AssociationWithPrimaryMbr": "Self",
      "FirstName": "Fakeem",
      "MemberKey": "fa26049af8a10b70bd68ce9a6912425f",
      "RelationshipToPrimaryMember": "Self",
      "Lastname": "Huber",
      "Gender": "Male",
      "GroupClassId": "0rEDR000000085p2AA",
      "GroupCensusId": "0rfDR0000000Cn6YAE",
      "Name": "Fakeem Huber"
    }
  \]
}