You are here:
InsClaimRecoveryService:save
Use this service to accept an input of a list of information, which is transformed to create and update records for the InsuranceClaimRecovery__c, an object that represents the recovery of funds for a claim.
Class: InsClaimRecoveryService
Method: save
Works with: Vlocity object model
How It Works
-
Takes the input JSON for a list of fields and values and saves this information in a Claim Recovery record.
The option JSON must contain inputKey, which is the name of the input JSON that contains the claim recovery information.
-
Passes the inputs.
-
Passes these inputs and options JSON to the service and gets the service's output.
-
If no input jSON or no inputKey element in the output JSON, the service ends unsuccessfully.
Remote Options
Option |
Description |
|---|---|
inputKey |
The node/element name of the input JSON that you're going to pass |
allOrNone |
Boolean value that determines if saving will proceed even if there are records in the list that has errors. |
Input JSON
{
"claimRecovery": [
{
"status": "Pending",
"type": "Salvage",
"collectionsAssignmentDate": "2020-04-02",
"assignmentDate": "2020-04-01",
"amount": 300,
"claimIdOrNumber": "a4X3j0000001iTcEAI",
"Name": "Recovery1"
},
{
"status": "Pending",
"type": "Salvage",
"collectionsAssignmentDate": "2020-04-16",
"assignmentDate": "2020-04-01",
"amount": 1000,
"claimIdOrNumber": "a4X3j0000001iTcEAI",
"Name": "Recovery2"
}
]
}
