Note: This release is in preview. Features described here don’t become generally available until the latest general availability date that Salesforce announces for this release. Before then, and where features are noted as beta, pilot, or developer preview, we can’t guarantee general availability within any particular time frame or at all. Make your purchase decisions only on the basis of generally available products and features.
CancelPolicy(CancelPolicyInput, policyId)
Cancel an insurance policy version. The API takes the effective date of cancellation from
the input JSON. You can advance the cancellation date within the policy term, but you can’t
postpone the cancellation.
API Version
63.0
Requires Chatter
No
Signature
public static ConnectApi.CancelPolicyOutputRepresentation CancelPolicy(ConnectApi.CancelPolicyInputRepresentation CancelPolicyInput, String policyId)
1ConnectApi.InsurancePolicyAdminFamily, CancelPolicy, [ConnectApi.CancelPolicyInputRepresentation, String], ConnectApi.CancelPolicyOutputRepresentationParameters
- CancelPolicyInput
- Type: ConnectApi.CancelPolicyInputRepresentation
- Description
- policyId
- Type: String
- Input representation of the request to cancel a policy.
Return Value
Usage
Send the cancellation effective date and transaction record in the request to cancel a policy.