You are here:
InsCensusServiceStd:deleteMembersWithPlans
Use this service to delete the group census members and the associated plans.
Class: InsCensusServiceStd
Method: deleteMembersWithPlans
How It Works
The service does the following:
-
The service uses
censusMemberIdsas the input parameter to retrieve the list ofGroupCensusMemberrecords. -
Retrieves associated plans from the
GroupCensusMemberPlan. -
The service first deletes the plans associated with the members. Then it deletes the dependent members, followed by the deletion of primary members.
Note Primary members with dependents and plans are not deleted.
Remote Options
Option |
Description |
|---|---|
|
Required. List of |
Input JSON
Here's the sample input JSON:
IDs of GroupCensusMember records
{
"censusMemberIds": [
"0r6RO0000000430YAA",
"0r6RO000000042vYAA"
]
}Ids of Contact records
{
"accountIds": [
"003RO000002yi8iYAA",
"003RO000002yi8dYAA"
]
}Output JSON
The service doesn't returns an output JSON. It deletes the group census member records as per the specified input.

