Loading
The online Trailblazer Community becomes read-only Oct 30, 2026Read More
Insurance
InsCensusServiceStd:deleteMembers

InsCensusServiceStd:deleteMembers

Use this service to delete the group census members.

Class: ​InsCensusServiceStd​​

Method: deleteMembers

How It Works

The service uses censusMemberIds as the input parameter to retrieve the list of GroupCensusMember records and delete these records from the given census Id. It first deletes all the dependent members and then deletes the primary members.

Note
Note

Primary members with dependents are not deleted.

Remote Options

Option

Description

censusMemberIds

Required.

List of GroupCensusMember record Ids which must be deleted.

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.

 
Loading
Salesforce Help | Article