bulkCancelInsurancePolicy(insurancePolicyBulkInput)
Cancel policies in bulk for the specified Insurance Policy IDs.
64.0
No
public static ConnectApi.InsurancePolicyBulkOutputRepresentation bulkCancelInsurancePolicy(ConnectApi.InsurancePolicyBulkInputRepresentation insurancePolicyBulkInput)
insurancePolicyBulkInput
- Type:
ConnectApi.InsurancePolicyBulkInputRepresentation - Input representation of the request to cancel policies in bulk.
Type: ConnectApi.InsurancePolicyBulkOutputRepresentation
Use this method to cancel insurance policies in bulk. The JSON input includes a field value map of insurance policy fields, such as CancellationEffectiveDate, Status, and CancellationReason, and a list of insurance policy IDs. After the request is successfully sent to the message queue, policies are canceled asynchronously, and you receive either a success or failure notification after the completion of the request.
The Apex example shows how to use the ConnectApi.InsuranceBrokerageFamily.bulkCancelInsurancePolicy() method to cancel multiple insurance policies in bulk.
Class Definition
This Apex example shows how to cancel multiple policies in bulk.
Usage Example
Use the BulkCancelTestConnectAPI class to execute the bulkCancel action and process the result.