You are here:
InsCensusService:getMembersWithPlans
Use this service to retrieve members of a census and their pre-enrolled plans.
This service also retrieves field definitions for the
GroupCensusMember__c and GroupCensusMemberPlan__c fields.
Method: getMembersWithPlans
How It Works
This service has two key functions:
-
Retrieves the list of fields in
GroupCensusMember__candGroupCensusMemberPlan__c.-
The service uses the parameter
fieldsetNameto retrieve the list ofGroupCensusMember__cfields. If there is no value, fields are retrieved from the default fieldset that isEditableTable. If the entered value doesn't find a match no fields are retrieved. -
The service uses the parameter
planFieldsetNameto retrieve the list ofGroupCensusMemberPlan__cfields. If there is no value, all fields are retrieved. If the entered value doesn't find a match no fields are retrieved. -
If the
contractIdparameter has value, it populatesContractLineId__c.optionswith the following details of the contract:-
Product name
-
Product type
-
Id of the plans which are a part of the contract.
-
-
Retrieves relationship fields that are combined to form the JSON
headersnode:-
MemberIdentifier__c
-
PrimaryMemberIdentifier__c
-
RelatedCensusMemberId__c
-
IsPrimaryMember__c
-
IsSpouse__c
-
Id
-
-
-
Retrieves the list of members in GroupCensusMember__c.
-
This service uses a
censusIdto retrieve census members fromGroupCensusMember__cand census member plans fromGroupCensusMemberPlan__cfor each member.NoteThe
offsetparameter value is used to retrieve the next 2000GroupCensusMember__crows (ordered byGroupCensusMember__cId) after the offset.If there's no value for the
offsetparameter, the first 2000 rows are retrieved. -
The information retrieved for each member is based on the fields retrieved from
GroupCensusMember__candGroupCensusMemberPlan__c. -
A list of members is placed into the
membersnode.
-
Remote Options
Options |
Description |
|---|---|
|
Required Retrieves census with members. |
|
Required
|
|
Optional
|
|
Optional
|
|
Optional
|
Output JSON
The service returns an output JSON, formatted as per the example below:
{
"census":{
"members":[
{
"vlocity_ins__ContractLineId__c":"",
"Id":"a4C4P000000dNdbUAE",
"vlocity_ins__LastName__c":null,
"vlocity_ins__FirstName__c":null,
"vlocity_ins__Birthdate__c":"1999-08-08"
},
{
"vlocity_ins__ContractLineId__c":"a2N4P000006ygEjUAI",
"Id":"a4C4P000000dNdcUAE",
"vlocity_ins__LastName__c":null,
"vlocity_ins__FirstName__c":null,
"vlocity_ins__Birthdate__c":"1994-08-08"
},
{
"vlocity_ins__ContractLineId__c":"a2N4P000006ygEjUAI;a2N4P000006ygEiUAI",
"Id":"a4C4P000000dNdeUAE",
"vlocity_ins__LastName__c":null,
"vlocity_ins__FirstName__c":null,
"vlocity_ins__Birthdate__c":"1985-08-08"
}
],
"headers":[
{
"type":"STRING",
"label":"First Name",
"fieldId":"",
"name":"vlocity_ins__FirstName__c"
},
{
"type":"DATE",
"label":"Birthday",
"fieldId":"",
"name":"vlocity_ins__Birthdate__c"
},
{
"type":"STRING",
"label":"Last Name",
"fieldId":"",
"name":"vlocity_ins__LastName__c"
},
{
"options":[
{
"value":"a2N4P000006ygEiUAI",
"type":"Medical",
"name":"rootProd"
},
{
"value":"a2N4P000006ygEjUAI",
"type":"Dental",
"name":"rootProd2"
}
],
"type":"REFERENCE",
"label":"Plan",
"fieldId":"",
"name":"vlocity_ins__ContractLineId__c"
}
]
},
"lastOffset" : "a4C4P000000dNdeUAE"
}
