endorseDraftInsurancePolicy(insurancePolicyDraftProcessInput, policyId)
Create an endorsement draft for a specific insurance policy by providing the draft input details and the policy ID.
67.0
No
public static ConnectApi.InsurancePolicyDraftOutputRepresentation endorseDraftInsurancePolicy(ConnectApi.InsurancePolicyDraftInputRepresentation insurancePolicyDraftProcessInput, String policyId)
insurancePolicyDraftProcessInput
- Type:
ConnectApi.InsurancePolicyDraft​InputRepresentation - Input representation containing the field value map of insurance policy fields to override in the endorsement draft.
policyId
- Type: String
- ID of the insurance policy for which to create an endorsement draft.
Type: ConnectApi.InsurancePolicyDraftOutputRepresentation
Use this method to create an endorsement draft for a specific insurance policy. Provide a field value map containing the policy fields to override and the ID of the policy. The response includes the policy ID of the created draft and any errors that occurred during the process.
The Apex example shows how to use the ConnectApi.InsuranceBrokerageFamily.endorseDraftInsurancePolicy() method to create an endorsement draft for a specific insurance policy.
Class Definition
This Apex example shows how to create an endorsement draft for an insurance policy.
Usage Example
Use the DraftEndorseTestConnectAPI class to execute the draftEndorse action and process the result.