bulkRenewInsurancePolicy(insurancePolicyBulkInput)
Renew policies in bulk for the specified Insurance Policy IDs.
64.0
No
public static ConnectApi.InsurancePolicyBulkOutputRepresentation bulkRenewInsurancePolicy(ConnectApi.InsurancePolicyBulkRenewInputRepresentation insurancePolicyBulkInput)
insurancePolicyBulkInput
- Type:
ConnectApi.InsurancePolicyBulkRenewInputRepresentation - Input representation of the request to renew insurance policies in bulk.
Type: ConnectApi.InsurancePolicyBulkOutputRepresentation
Insurance Policy Bulk Renewal API takes a JSON input that contains a list of insurance policy IDs that must be renewed along with the fieldValueMap details. The API submits the request to a queue, creates policies, along with child records by using the context definition selected in setup. The service also overrides the fieldValueMap in the new policy for each policy ID passed in the request. Users receive success and failure notifications on completion.
Keep these considerations in mind when you use this method.
- The
RenewedFromPolicyIdvalue of the new policy is set to the current policy ID andIsRenewedPolicyfield of the new policy is set totrue. - The name of the new policy is a copy of {ExistingName}.
- The
fieldValueMapexpects the keys to be API name and is case-sensitive.
The Apex example shows how to use the ConnectApi.InsuranceBrokerageFamily.bulkRenewInsurancePolicy() method to renew multiple insurance policies in bulk.
Class Definition
This Apex example shows how to renew multiple policies in bulk.
Usage Example
Use the BulkRenewTestConnectAPI class to execute the bulkRenew action and process the result.