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"
    }
  ]
}