Newer Version Available

This content describes an older version of this product. View Latest

Invoke Underwriting Rules Action

Invoke the underwriting rules for different insurance records during the run time.

This action is available in API version 65.0 and later.

Supported REST HTTP Methods

URI
/services/data/v65.0/actions/standard/invokeUnderwritingRules
Formats
JSON
HTTP Methods
POST
Authentication
Authorization: Bearer token

Inputs

Input Details
invokeUnderwritingRuleInputRep
Type
Apex-defined
Description

Required.

An Apex ConnectApi.InvokeUnderwritingRuleInputRep record that contains the details of the object records to which the underwriting rules are to be applied.

Outputs

Output Details
invokeUnderwritingRuleOputRep
Type
Apex-defined
Description
An Apex ConnectApi.InvokeUnderwritingRuleOputRep record that contains the details of the object records to which the underwriting rules were applied.

Example

Sample Request

1{
2    "inputs": [
3        {
4            "invokeUnderwritingRuleInputRep": {
5                "objectId": "0Zkxx000000001qCAA",
6                "toStage": "Open"
7            }
8        }
9    ]
10}

Sample Response

1[
2  {
3    "actionName": "invokeUnderwritingRules",
4    "errors": null,
5    "invocationId": null,
6    "isSuccess": true,
7    "outcome": null,
8    "outputValues": {
9      "invokeUnderwritingRuleOputRep": {
10        "evaluationCriteria": "1",
11        "fromStage": "Draft",
12        "isSuccess": true,
13        "objectId": "0Zkxx000000001qCAA",
14        "objectName": "Claim",
15        "ruleResult": [
16          {
17            "isSuccess": true,
18            "ruleApiName": "ClaimUnderwriting"
19          }
20        ],
21        "stageTransitionName": "Draft to Open",
22        "stageTransitionUnderwritingEvaluationId": "1Mjxx00000004C0CA2",
23        "toStage": "Open"
24      }
25    },
26    "sortOrder": -1,
27    "version": 1
28  }
29]