Cancel an insurance brokerage policy with optional cancellation details such as effective date, reason, and target status.
This action is available in API version 67.0 and later.
Special Access Rules
The Cancel Insurance Brokerage Policy action is available in Enterprise, Unlimited, and Developer Editions where Financial Service Cloud and Insurance Brokerage are enabled. To use this action, you need the Insurance Brokerage User permission set.
This is a sample request to call this invocable action from Apex code.
1// Create the standard Invocable Action for canceling a brokerage policy2Invocable.Action action = Invocable.Action.createStandardAction('cancelInsBrokeragePolicy');34// Instantiate the input object5ConnectApi.CancelBrokeragePolicyIAInputRep input = new ConnectApi.CancelBrokeragePolicyIAInputRep();67// Required: Set the Policy ID of the brokerage policy to be canceled8input.policyId = '0YjXX0000000001';910// Optional: Set cancellation details11input.cancellationEffectiveDate = '2026-07-01';12input.cancellationReason = 'Customer requested cancellation';13input.status = 'Cancelled';1415// Set the invocation parameter and invoke16action.setInvocationParameter('cancelBrokeragePolicyIAInputRep', input);17List<Invocable.Action.Result> results = action.invoke();1819System.debug('Cancel Brokerage Policy Invocable Action result = ' + results);
This is the sample response for the Cancel Insurance Brokerage Policy action.