Loading
Prepare for Email to Become the Default Login ExperienceRead More
The online Trailblazer Community becomes read-only Oct 30, 2026Read More
Important Advisory: iOS Update Impacting CG Mobile ApplicationRead More
Insurance
InsCensusService:createContacts

InsCensusService:createContacts

Use this service to create Contacts for census members and community (portal) users.

Important
Important From Winter '23 onward, we have InsCensusServiceStd:createContacts service enabled to work with Salesforce Standard Data Model for Financial Services Cloud and Health Cloud. Existing customers can continue to use this service, but no further enhancements will be provided in the Insurance Managed Package.

Class: InsCensusService

Method: createContacts

How It Works

  • The service uses the censusId to retrieve all related GroupCensusMember__c records to create a Contact. If a list of censusMemberIds is supplied, Contacts will be created for each member. 

  • censusId takes precedence and ignores censusMemberIds if both are used as an input.

  • If the GroupCensusMember__c already has a linked Contact the service will skip it.

  • The service creates the Contact and links it into the GroupCensusMember__c record.

  • For each GroupCensusMember__c the service will check isPortalUser__c field. If the field is set to true, the service will create a user if the user is not yet existing in the org (based on user email); otherwise it will be skipped. 

  • The user is created using the required parameters: emailEncoding, profileId, timeZoneSID, localeSID, and languageLocale.

Inputs

Input

Description

censusId

Required.

Id of census used to create Contacts.

censusMemberIds

Required.

List of census member Ids to create Contacts.

Remote Options

Option

Description

languageLocale

Required.

The local language of user.

Example: en_US

localeSID 

Required.

Location SID of the user.

Example: en_US

emailEncoding

Email encoding type.

Example: UTF-8

profileId

Required.

Profile Id of the users to be created

Profile Id is same as User Id.

For more info, refer to Find the Salesforce ID for a User or profile .

timeZoneSID

Time zone SID of user.

Example: America/New_York

duplicateKeys

Comma-delimited field names.

Used to check for duplicate fields.

Example: FirstName, LastName, BirthDate

If not used, duplicate fields are ignored

NOTE: For custom fields, format is namespace followed by field name. For example: vlocity_ins__Gender__c

Input JSON

There is no input JSON required for this service.

Output JSON

The output JSON result will be a list of contact Ids of successfully created census members.

{
  "contactIds": [
    "0031U00000pCm53QAC",
    "0031U00000pCm54QAC"
  ]
}
 
Loading
Salesforce Help | Article