You are here:
InsCensusService:createContacts
Use this service to create Contacts for census members and community (portal) users.
Method: createContacts
How It Works
-
The service uses the
censusIdto retrieve all relatedGroupCensusMember__crecords to create a Contact. If a list ofcensusMemberIdsis supplied, Contacts will be created for each member. -
censusIdtakes precedence and ignorescensusMemberIdsif both are used as an input. -
If the
GroupCensusMember__calready has a linked Contact the service will skip it. -
The service creates the Contact and links it into the
GroupCensusMember__crecord. -
For each
GroupCensusMember__cthe service will checkisPortalUser__cfield. If the field is set totrue, 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, andlanguageLocale.
Inputs
Input |
Description |
|---|---|
|
Required. Id of census used to create Contacts. |
|
Required. List of census member Ids to create Contacts. |
Remote Options
Option |
Description |
|---|---|
|
Required. The local language of user. Example: |
|
Required. Location SID of the user. Example:
|
|
Email encoding type. Example:
|
|
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 . |
|
Time zone SID of user. Example:
|
|
Comma-delimited field names. Used to check for duplicate fields. Example: If not used, duplicate fields are ignored NOTE: For custom fields, format is namespace followed by
field name. For example: |

