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

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

This action is available in API version 66.0 and later.

## Special Access Rules

To use this invocable action, you must have Digital Insurance Group Benefits Census Management user access and the org must be enabled with the Digital Insurance Group Benefits feature.

## Supported REST HTTP Methods

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

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

You must specify one of these input parameters for the validation process.

- contextId
- groupCensusMembers
- memberPlansToDelete
- memberPlansToValidate

| Input | Type | Description |
| --- | --- | --- |
| contextId | string | ID of the context definition that contains information about root plans and coverages that are configured for the current list of group census members. |
| groupCensusMembers | sobject | Group census member records that must be validated. |
| memberPlansToDelete | sobject | Group census member plan records that must be deleted. |
| memberPlansToValidate | sobject | Group census member plan records that must be validated. |
| shouldExecuteConfigurationRule | boolean | Indicates whether the product configuration rules must be executed for member plans in the enrollment census ( true ) or not ( false ). |

## Outputs

| Output | Type | Description |
| --- | --- | --- |
| errorsData | Apex-defined | Validation errors that occurred while validating the group census member and plans records. |
| validatedGroupCensusMemberPlans | sobject | Group census member plan records that are validated and assigned with default values. |
| validatedGroupCensusMembers | sobject | Group census member records that are validated and assigned with default values. |

## Example

**POST**

This sample request is for the Validate Group Census Members Plans action.

{
  "inputs": \[
    {
      "groupCensusMembers": \[
        {
          "Id": "a1b2c3d4e5f6g7h8",
          "MemberRefId": "M001",
          "FirstName": "John",
          "LastName": "Doe",
          "GroupCensus": "gc\_12345"
        },
        {
          "Id": "b2c3d4e5f6g7h8i9",
          "MemberRefId": "M002",
          "FirstName": "Jane",
          "LastName": "Smith",
          "GroupCensus": "gc\_12345"
        }
      \],
      "memberPlansToValidate": \[
        {
          "ContractGroupPlan": "plan\_medical\_001",
          "GroupCensusMember": "a1b2c3d4e5f6g7h8",
          "MemberRefId": "M001"
        },
        {
          "ContractGroupPlan": "plan\_dental\_001",
          "GroupCensusMember": "a1b2c3d4e5f6g7h8",
          "MemberRefId": "M001"
        }
      \],
      "memberPlansToDelete": \[
        {
          "ContractGroupPlan": "plan\_old\_001",
          "GroupCensusMember": "b2c3d4e5f6g7h8i9",
          "MemberRefId": "M002"
        }
      \],
      "contextId": "ctx\_validation\_12345",
      "shouldExecuteConfigurationRule": true
    }
  \]
}

This sample response is for the Validate Group Census Members Plans action.

{
  "outputs": \[
    {
      "validatedGroupCensusMembers": \[
        {
          "Id": "a1b2c3d4e5f6g7h8",
          "MemberRefId": "M001",
          "FirstName": "John",
          "LastName": "Doe",
          "Information": "Plans validated successfully",
          "CensusMgmtUploadMemError": null
        },
        {
          "Id": "b2c3d4e5f6g7h8i9",
          "MemberRefId": "M002",
          "FirstName": "Jane",
          "LastName": "Smith",
          "Information": "Plan deletion validated",
          "CensusMgmtUploadMemError": null
        }
      \],
      "validatedGroupCensusMemberPlans": \[
        {
          "ContractGroupPlan": "plan\_medical\_001",
          "GroupCensusMember": "a1b2c3d4e5f6g7h8",
          "MemberRefId": "M001",
          "PlanType": "AUTO\_ADDED"
        },
        {
          "ContractGroupPlan": "plan\_dental\_001",
          "GroupCensusMember": "a1b2c3d4e5f6g7h8",
          "MemberRefId": "M001",
          "PlanType": "AUTO\_ADDED"
        },
        {
          "ContractGroupPlan": "plan\_old\_001",
          "GroupCensusMember": "b2c3d4e5f6g7h8i9",
          "MemberRefId": "M002",
          "CensusMgmtUploadMemError": "Plan successfully marked for deletion"
        }
      \],
      "errorsData": \[\]
    }
  \]
}