postInsuranceGenerateRefreshCensusMembers(generateRefreshCensusMembersInputParam, contractId)

Generate or update group census members from policy information on an existing group benefits contract.

68.0

No

public static ConnectApi.InsuranceGenerateRefreshCensusMembersRep postInsuranceGenerateRefreshCensusMembers(ConnectApi.InsuranceGenerateRefreshCensusMembersInputRep generateRefreshCensusMembersInputParam, String contractId)

generateRefreshCensusMembersInputParam

contractId

  • Type: String
  • ID of the insurance contract whose policy data is used to generate or update group census member information.

Type: ConnectApi.InsuranceGenerateRefreshCensusMembersRep

Use this method to generate or update group census members and their plan configuration details from policy information on an existing group benefits contract. Specify the contract in contractId. Identify members with personAccountIds or contactIds. If you specify contact IDs, also set policyIds.

To update members on an existing census, set groupCensusId. To create a census, set censusName and censusType, such as Enrollment or Quote. Set policyEffectiveDate in yyyy-MM-dd format to select the policy version. The date must fall between the version’s effectiveFromDate and effectiveToDate.

Set shouldGenerateCsv to create a CSV file of the census data. Set shouldIncludeMemberPlans to include insurance plan details for each member. To stamp additional field values on members, set additionalFields with a list of members and their fields.

Check isSuccess and groupCensusId on the response. Errors are in the errors property.

This example generates census members from a contract for a person account, includes member plan details, and stamps an additional field on the member.