Newer Version Available

This content describes an older version of this product. View Latest

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/v66.0/actions/standard/validateGrpCensusMembersPlans
Formats
JSON, XML
HTTP Methods
POST
Authentication
Authorization: Bearertoken

Inputs

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

  • contextId
  • groupCensusMembers
  • memberPlansToDelete
  • memberPlansToValidate
Input Details
contextId
Type

string

Description
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
Type

sobject

Description
Group census member records that must be validated.
memberPlansToDelete
Type

sobject

Description
Group census member plan records that must be deleted.
memberPlansToValidate
Type

sobject

Description
Group census member plan records that must be validated.
shouldExecuteConfigurationRule
Type

boolean

Description
Indicates whether the product configuration rules must be executed for member plans in the enrollment census (true) or not (false).

Outputs

Output Details
errorsData
Type

Apex-defined

Description
Validation errors that occurred while validating the group census member and plans records.
validatedGroupCensusMemberPlans
Type

sobject

Description
Group census member plan records that are validated and assigned with default values.
validatedGroupCensusMembers
Type

sobject

Description
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.

1{
2  "inputs": [
3    {
4      "groupCensusMembers": [
5        {
6          "Id": "a1b2c3d4e5f6g7h8",
7          "MemberRefId": "M001",
8          "FirstName": "John",
9          "LastName": "Doe",
10          "GroupCensus": "gc_12345"
11        },
12        {
13          "Id": "b2c3d4e5f6g7h8i9",
14          "MemberRefId": "M002",
15          "FirstName": "Jane",
16          "LastName": "Smith",
17          "GroupCensus": "gc_12345"
18        }
19      ],
20      "memberPlansToValidate": [
21        {
22          "ContractGroupPlan": "plan_medical_001",
23          "GroupCensusMember": "a1b2c3d4e5f6g7h8",
24          "MemberRefId": "M001"
25        },
26        {
27          "ContractGroupPlan": "plan_dental_001",
28          "GroupCensusMember": "a1b2c3d4e5f6g7h8",
29          "MemberRefId": "M001"
30        }
31      ],
32      "memberPlansToDelete": [
33        {
34          "ContractGroupPlan": "plan_old_001",
35          "GroupCensusMember": "b2c3d4e5f6g7h8i9",
36          "MemberRefId": "M002"
37        }
38      ],
39      "contextId": "ctx_validation_12345",
40      "shouldExecuteConfigurationRule": true
41    }
42  ]
43}

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

1{
2  "outputs": [
3    {
4      "validatedGroupCensusMembers": [
5        {
6          "Id": "a1b2c3d4e5f6g7h8",
7          "MemberRefId": "M001",
8          "FirstName": "John",
9          "LastName": "Doe",
10          "Information": "Plans validated successfully",
11          "CensusMgmtUploadMemError": null
12        },
13        {
14          "Id": "b2c3d4e5f6g7h8i9",
15          "MemberRefId": "M002",
16          "FirstName": "Jane",
17          "LastName": "Smith",
18          "Information": "Plan deletion validated",
19          "CensusMgmtUploadMemError": null
20        }
21      ],
22      "validatedGroupCensusMemberPlans": [
23        {
24          "ContractGroupPlan": "plan_medical_001",
25          "GroupCensusMember": "a1b2c3d4e5f6g7h8",
26          "MemberRefId": "M001",
27          "PlanType": "AUTO_ADDED"
28        },
29        {
30          "ContractGroupPlan": "plan_dental_001",
31          "GroupCensusMember": "a1b2c3d4e5f6g7h8",
32          "MemberRefId": "M001",
33          "PlanType": "AUTO_ADDED"
34        },
35        {
36          "ContractGroupPlan": "plan_old_001",
37          "GroupCensusMember": "b2c3d4e5f6g7h8i9",
38          "MemberRefId": "M002",
39          "CensusMgmtUploadMemError": "Plan successfully marked for deletion"
40        }
41      ],
42      "errorsData": []
43    }
44  ]
45}