---
schema_version: "1"
id: a98f2ad917479eafaff70920fd1d52a113bf1321090ad0dd558e44b6d162fb4a
title: Get Applicable Auto-Assigned Member 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_applicable_auto_assigned_mbr_plans.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.insurance_developer_guide.meta/insurance_developer_guide/actions_obj_get_applicable_auto_assigned_mbr_plans.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 364522ec5e1f3db335b0861c9dae579cebefc373f483b649528307a43f3dcff6
description: Get a combined collection of group census member plans, including the specified plans and plans that are automatically assigned based on contract settings.
---
# Get Applicable Auto-Assigned Member Plans Action

Get a combined collection of group census member plans, including the specified plans and plans that are automatically assigned based on contract settings.

This action is available in API version 68.0 and later.

## Supported REST HTTP Methods

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

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

| Input | Type | Description |
| --- | --- | --- |
| censusMemberPlanData | Apex-defined | An Apex ind\_ins\_grpben\_\_GroupCensusMemberNode record that contains census member plan records, such as group census members, member plans, and plan attributes. |
| groupCensusMemberPlans | List<sObject> | Collection of group census member plan records. |
| groupCensusMembers | List<sObject> | Collection of group census member records that are used to determine plan applicability. |

## Outputs

| Output | Type | Description |
| --- | --- | --- |
| censusMemberPlanData | Apex-defined | An Apex ind\_ins\_grpben\_\_GroupCensusMemberNode record that contains a collection of census member plan records, such as group census members, member plans, and plan attributes. |
| errorsData | Apex-defined | An Apex ind\_ins\_grpben\_\_ErrorDetails record that contains a collection of error records that occurred during the retrieval of group census member and plans records. |
| groupCensusMemberPlans | List<sObject> | Collection of group census member plan records. |
| groupCensusMembers | List<sObject> | Collection of group census member records that are used to determine plan applicability. |

## Example

**POST**

This sample request is for the Get Applicable Member Plans action.

{
  "inputs": \[
    {
      "censusMemberPlanData": \[
        {
          "member": {
            "FirstName": "Test\_Primary",
            "AssociationWithPrimaryMbr": "Self",
            "OverrideTypeConfiguration": "Default",
            "GroupCensusId": "0rfXXXXXXXXXXXXAAA",
            "GroupClassId": "a1AXXXXXXXXXXXXAAA"
          },
          "plans": \[\]
        },
        {
          "member": {
            "FirstName": "Test\_Spouse",
            "AssociationWithPrimaryMbr": "Spouse",
            "OverrideTypeConfiguration": "Default",
            "GroupCensusId": "0rfXXXXXXXXXXXXAAA",
            "GroupClassId": "a1AXXXXXXXXXXXXAAA"
          },
          "plans": \[\]
        }
      \]
    }
  \]
}

This sample response is for the Get Applicable Member Plans action.

\[
  {
    "actionName": "getApplicAutoAsgnMbrPlans",
    "errors": null,
    "invocationId": null,
    "isSuccess": true,
    "outcome": null,
    "outputValues": {
      "censusMemberPlanData": \[
        {
          "member": {
            "FirstName": "Test\_Primary",
            "AssociationWithPrimaryMbr": "Self",
            "OverrideTypeConfiguration": "Default",
            "GroupCensusId": "0rfXXXXXXXXXXXXAAA",
            "GroupClassId": "a1AXXXXXXXXXXXXAAA"
          },
          "plans": \[
            {
              "plan": {
                "PlanName": "Medical Gold",
                "ContractGroupPlanId": "a0bXXXXXXXXXXXX001",
                "planOperation": "Add"
              },
              "attributes": \[\]
            },
            {
              "plan": {
                "PlanName": "Preventive Care",
                "ContractGroupPlanId": "a0bXXXXXXXXXXXX002",
                "ContractGroupPlan.ContractGroupParentPlanId": "a0bXXXXXXXXXXXX001",
                "planOperation": "Add"
              },
              "attributes": \[\]
            }
          \]
        },
        {
          "member": {
            "FirstName": "Test\_Spouse",
            "AssociationWithPrimaryMbr": "Spouse",
            "OverrideTypeConfiguration": "Default",
            "GroupCensusId": "0rfXXXXXXXXXXXXAAA",
            "GroupClassId": "a1AXXXXXXXXXXXXAAA"
          },
          "plans": \[
            {
              "plan": {
                "PlanName": "Medical Gold",
                "ContractGroupPlanId": "a0bXXXXXXXXXXXX001",
                "planOperation": "Add"
              },
              "attributes": \[\]
            },
            {
              "plan": {
                "PlanName": "Preventive Care",
                "ContractGroupPlanId": "a0bXXXXXXXXXXXX002",
                "ContractGroupPlan.ContractGroupParentPlanId": "a0bXXXXXXXXXXXX001",
                "planOperation": "Add"
              },
              "attributes": \[\]
            }
          \]
        }
      \],
      "errorsData": \[\]
    },
    "sortOrder": -1,
    "version": 1
  }
\]