Loading
Salesforce now sends email only from verified domains. Read More
Insurance
Table of Contents
Select Filters

          No results
          No results
          Here are some search tips

          Check the spelling of your keywords.
          Use more general search terms.
          Select fewer filters to broaden your search.

          Search all of Salesforce Help
          InsCensusService:createAccounts

          InsCensusService:createAccounts

          Use this service to create Person Accounts for the members in the given census.

          Important
          Important From Winter '23 onward, we have InsCensusServiceStd:createUpdateAccounts 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: createAccounts

          Note
          Note

          Person Accounts must be enabled in the org when using this service.

          How it Works

          To create person accounts for the members in the given census, this service:

          1. Uses the censusId to retrieve the list of GroupCensusMember__c records.

          2. Then it creates a Person Account for each censusMember.

          3. Creates an ACR (AccountContactRelation) record.

            Note
            Note

            ACR.accountId = groupAccountId

            ACR.ContactId = PersonContactId of the created Person Account

          4. Updates the AccountId__c and ContactId__c fields of the census member.

          5. Sets GroupCensusMember__c.AccountId__c as the Id of the newly created Person Account and GroupCensusMember__c.ContactId__c as the corresponding PersonContactId.

          Remote Options

          Remote Option

          Description

          censusId

          Required.

          Id of census to retrieve the group members.

          personAccountRecordType

          Optional.

          Name of the person account record type to be associated with the created person accounts.

          Note
          Note

          If the value isn’t passed, it defaults to "Person Account."

          batchSize

          Number of records to be processed per batch job.

          Note
          Note

          Supported only for small and medium groups (up to 900 records which includes both primary members and dependents).

          jobSize

          Number of records to be processed per asynchronous Apex job.

          This parameter determines how many apex jobs are instantiated, given the number of records.

          Note
          Note

          Salesforce allows a maximum five apex jobs to run in parallel.

          portalUsersOnly

          Notifies the community admin to create or configure the community users.

          duplicateKeys

          Comma-delimited field names. This option checks for duplicate fields.

          Example: FirstName, LastName, BirthDate

          If this option isn’t used, all the duplicate fields are ignored.

          Input JSON

          There’s no input JSON required for this service.

          Output JSON

          The output JSON is a list of account Ids of successfully created Person Accounts.

          {  
            "accountIds": [
              "0015e00000JWzpKAAT",
              "0015e00000JWzpLAAT",
              "0015e00000JWzpMAAT"
            ],
            "error": "OK"
          }
           
          Loading
          Salesforce Help | Article