Sie befinden sich hier:
InsClaimService:createUpdateClaim
Verwenden Sie diesen Service, um einen Anspruch zu erstellen oder zu aktualisieren.
Funktionsweise
Das Salesforce Claims-Produkt unterstützt sowohl das vorhandene Vlocity-Objektmodell (benutzerdefinierte Objekte im verwalteten Paket) als auch das neue Salesforce-Objektmodell (Salesforce-Standardobjekte). Das Vlocity-Modell unterstützt die Beziehung Vermögenswert → InsuranceClaim zwischen Policen und Ansprüchen. Das Salesforce-Modell unterstützt die Beziehung InsurancePolicy → Claim zwischen Policen und Ansprüchen.
-
Ruft eine vortransformierte JSON ab, die vom
inputKeyaufgerufen wird. Anschließend überprüft der Service daspolicyIdin der Eingabe-JSON, um festzustellen, ob der Service einen Vlocity- oder Salesforce FSC-Claim erstellt:-
Wenn
policyIdzu einem Vermögenswert-Datensatz gehört, erstellt der Service Vlocity-Anspruchsobjekte –InsuranceClaim__c,InsuranceClaimInvolvedInjury__c,InsuranceClaimInvolvedProperty__cundInsuranceClaimPartyRelationship__c. -
Wenn
policyIdzu einemInsurancePolicygehört, erstellt der Service die folgenden Salesforce FSC-Claim-Objekte:Claim,ClaimItemundClaimParticipant. -
Wenn das
policyId-Element in der Eingabe-JSON nicht verfügbar ist oder sein Wert leer ist, wird die Remote-OptionisAssetInsuranceClaimaktiviert. Wenn der Werttruelautet, erstellt der Service Vlocity-Claim-Objekte, andernfalls FSC-Claim-Objekte. WennpolicyIdkeinen Wert aufweist undisAssetInsuranceClaimnicht festgelegt ist, lautet der Standardwert vonisAssetInsuranceClaimfalse.
-
-
Wenn keine
claimIdweitergegeben wird, erstellt der Service ein Anspruchsobjekt.Wenn eine
claimIdweitergegeben wird, aktualisiert der Service das Anspruchsobjekt. -
Wenn die
generateClaimNumberoderuniqueIdGeneratorObjectSettingoder beide Optionen festgelegt sind, verwendet der Service sie zum Erstellen einesclaimNumber(Feld Name).Weisen Sie jedem Anspruch eine eindeutige Anspruchsnummer zu. Verwenden Sie Remote-Optionen, um dieser Empfehlung gerecht zu werden, und stellen Sie sicher, dass benutzerdefinierte Workflows eindeutige Werte vom Typ claimNumber generieren. Wenn kein eindeutiger Wert konfiguriert ist, legt das System die Anspruchsnummern für alle Ansprüche auf denselben Wert fest.
-
Gibt
claimId,policyHolderClaimantId(oderpolicyholderClaimParticipantId, wenn es sich um einen FSC-Claim handelt) und deninvolvedItems-Knoten in der Ausgabe-JSON zurück.
Remote-Optionen
Option |
Beschreibung |
|---|---|
|
Pflichtangabe. Ruft eine Liste vortransformierter JSON-Strukturen ab, die Informationen enthalten, die der Service benötigt. Je nach
|
|
Optional. Wenn die Wenn die |
|
Optional. Falls |
|
Optional. Wenn Wenn der Service mehrere Einstellungen findet, gibt der Service einen Fehler zurück. Wenn der Service eine Einstellung findet, verwendet er diese Einstellung. Wenn |
|
Optional. Bestimmt, ob der Service einen Vlocity-Claim oder einen Salesforce FSC-Claim erstellt.
|
Input JSON (Salesforce FSC Claim Object Model)
Dieses Modell ist in einem der beiden folgenden Fälle anwendbar:
-
Der
policyIDin claimJson gehört zu einem Objekt vom Typ InsuranceClaim. -
Der Wert der Remote-Option "
isAssetInsuranceClaim" lautet "false".HinweisDie Remote-Option
isAssetInsuranceClaimwird nur angewendet, wennpolicyIdin der Eingabe-JSON nicht vorhanden ist oder einen leeren Wert aufweist. Wenn "policyId" keinen Wert aufweist und "isAssetInsuranceClaim" nicht festgelegt ist, lautet der Standardwert von "isAssetInsuranceClaim" außerdem "false".
Der Service verwendet die inputKey, um eine vortransformierte JSON als Eingabe zu erhalten. Dieser Service kann auch die Spezifikation des versicherten Artikels direkt aus dem Produkt übernehmen und einen Versicherten oder eine Immobilie erstellen.
In diesem Beispiel ist inputKey = claimJson.
Hier ein Beispiel für die Eingabe-JSON für einen Salesforce FSC-Claim:
{
"claimJson": {
"claimAttributes": {
"amountDeductible": "500.00"
},
"claimPropertyItems": {
"autoClaimInvolvedVehicle": [
{
"claimParticipantRoles": "First Party Claimant; Insured",
"insurancePolicyParticipantId": "0ao5w0000000Cl7AAE",
"contactId": null,
"accountId": null,
"insuredItemId": "0YW5w0000000HLKGA2",
"additionalFields": {},
"productCode": "autoClaimInvolvedVehicle",
"avMake": "Jeep",
"avModel": "Wrangler",
"avLicNum": "49J9384",
"avLicState": "CA",
"avYear": "2019",
"avColor": "Red",
"claimInsuredProp": true,
"claimEstimate": null,
"claimPropertyLoc": null,
"claimSeverity": null,
"claimDamage": "Front End Damage",
"claimDamageLoc": null,
"claimDrivable": false
},
{
"claimParticipantRoles": "Third Party Claimant",
"insurancePolicyParticipantId": null,
"contactId": "0ao5w0000000J47AX5",
"accountId": null,
"insuredItemId": null,
"additionalFields": {},
"productCode": "autoClaimInvolvedVehicle",
"avMake": "Audi",
"avModel": "A5",
"avLicNum": "48H03949",
"avLicState": "WA",
"avYear": "2015",
"avColor": "Blue",
"claimInsuredProp": false,
"claimEstimate": null,
"claimPropertyLoc": null,
"claimSeverity": null,
"claimDamage": "Rear End Damage",
"claimDamageLoc": null,
"claimDrivable": false
}
]
},
"claimPartyItems": {
"claimInjuredPerson": [
{
"claimParticipantRoles": "Third Party Claimant",
"contactId": "0ao5w0000000J47AX5",
"accountId": null,
"insurancePolicyParticipantId": null,
"additionalFields": {},
"productCode": "claimParticipantPerson",
"injDescription": "Whiplash"
}
],
"additionalClaimParticipants": [
{
"Id": null,
"insurancePolicyParticipantId": null,
"contactId": null,
"accountId": "0015g00000H480EAAR",
"claimParticipantRoles": "Witness",
"additionalFields": {}
}
]
},
"additionalFields": {},
"policyholderClaimParticipantRole": "Insured",
"policyholderInsurancePolicyParticipantId": "0ao5w0000000Cl7AAE",
"policyId": "0YT5w0000000ieyGAA",
"lossDate": "2021-03-29T16:00:00.000Z",
"productCode": "autoClaimProduct"
}
} Ausgabe-JSON
Hier ein Beispiel für eine Ausgabe-JSON für einen Salesforce FSC-Claim:
{
"CreateUpdateClaimRemoteAction": {
"involvedItems": [
{
"insuredItemId": "0YW5w0000000HLKGA2",
"claimItemId": "0dq5w0000008PrNAAU",
"accountId": "0035w000034fL4YAK",
"contactId": "0035w000039cfL2AAI",
"insurancePolicyParticipantId": "0ao5w0000000Cl7AAE",
"claimParticipantRoles": "First Party Claimant; Insured",
"claimParticipantId": "0aS5w00000007r3EAA"
},
{
"insuredItemId": null,
"claimItemId": "0dq5w0000008PrNAAU",
"accountId": null,
"contactId": "0035w000039cfL2AAI",
"insurancePolicyParticipantId": "0ao5w0000000Cl7AAE",
"claimParticipantRoles": "Third Party Claimant",
"claimParticipantId": "0aS5w00000004K59dD"
}
],
"policyholderClaimParticipantId": "0ao5w0000000Cl7AAE",
"claimId": "0Zk5w0000000IOVCA2"
},
"policyTermIds": [
"a6Q5w0000002x6oEAA",
"a6Q5w0000002x6pEAA",
"a6Q5w0000002x6qEAA",
"a6Q5w0000002x6rEAA",
"a6Q5w0000002x6sEAA",
"a6Q5w0000002x6tEAA"
]
}Eingabe-JSON (Vlocity Claim Object Model)
Dieses Modell ist in einem der beiden folgenden Fälle anwendbar:
-
Der
policyIDin claimJson gehört zu einem Vermögenswertobjekt. -
Der Wert der Remote-Option "
isAssetInsuranceClaim" lautet "true".HinweisDie Remote-Option
isAssetInsuranceClaimwird nur angewendet, wennpolicyIdin der Eingabe-JSON nicht vorhanden ist oder einen leeren Wert aufweist. Wenn "policyId" keinen Wert aufweist und "isAssetInsuranceClaim" nicht festgelegt ist, lautet der Standardwert von "isAssetInsuranceClaim" außerdem "false".
Der Service verwendet die inputKey, um eine vortransformierte JSON als Eingabe zu erhalten. Dieser Service kann auch die Spezifikation des versicherten Artikels direkt aus dem Produkt übernehmen und einen Versicherten oder eine Immobilie erstellen.
In diesem Beispiel ist inputKey = claimJson.
Eingabe |
Beschreibung |
|---|---|
|
|
|
Die Eingabeelemente innerhalb der JSON-Struktur:
|
|
Die Liste der Immobilien- und Verletzungseingaben. Dieser Eingabeparameter ist ein Teil von claimJSON. Eigenschaft
Verletzung
|
Für claimantPartyRelationshipTypeID und claimantPartyRelationshipTypeName benötigen Sie nur eines dieser beiden Elemente.
Für claimantPartyName und claimantPartyID benötigen Sie nur eines dieser beiden Elemente.
Sie müssen über ein Paket mit einer dieser übereinstimmenden Eingaben verfügen.
Wenn es sich um eine neue Kombination handelt, wird ein Datensatz eingefügt. Wenn es sich nicht um eine neue Kombination handelt, wird der vorhandene Datensatz für die Kombination verwendet.
Die Ausgabe ist ein claimantId (kein partyId).
Im Folgenden finden Sie das Format der Eingabe-JSON für einen Vlocity-Claim:
{
"input": {
"claimJson": {
"claimAttributes": {
"amountDeductible": <Decimal>
},
"claimPropertyItems": {
"homeUnit": [
{
"Id": <Id>,
"claimantPartyRelationshipTypeName": <String>,
"claimantPartyRelationshipTypeId": <Id>,
"claimantPartyName": <String>,
"claimantPartyId": <Id>,
"insuredItemId": <Id>,
"additionalFields": {},
"productCode": <String>,
"productName": <String>,
"productId": <Id>
}
],
"claimClaimantPerson": [
"additionalFields": {
"Name": <String>
},
"productCode": <String>,
"persPhone": <String>,
"persLastName": <String>,
"persName": <String>,
"persFirstName": <String>,
"persEmail": <String>,
"claimInjury": <String>,
"claimPartyRelationshipTypeName": <String>,
"claimPartyRelationshipTypeId": <Id>,
"partyName": <String>
"partyId": <Id>
]
},
"additionalFields": {},
"policyHolderPartyRelationshipType": <String>,
"policyHolderPartyRelationshipTypeId": <Id>,
"policyHolderPartyName": <String>,
"policyHolderPartyId": <Id>,
"policyId": <Id>,
"policyNumber": <String>,
"lossDate": <Date>,
"productCode": "deluxeHomeowners",
"productName": "Deluxe Homeowners",
"productId": <Id>
}
}
}Ausgabe-JSON
Das Format der Ausgabe-JSON für einen Vlocity-Claim lautet wie folgt:
{
"output": {
"claimId": <String>,
"policyHolderClaimantId": <Id>,
"involvedItems": [
{
"insuredItemId": <Id>,
"claimantPartyAccountName": <String>,
"claimantPartyContactName": <String>,
"claimantPartyId": <Id>,
"claimantId": <Id>,
"involvedItemId": <Id>
},
{
"heldProductRelationshipId": <Id>,
"claimantPartyAccountName": <String>,
"claimantPartyContactName": <String>,
"claimantPartyId": <Id>,
"claimantId": <Id>,
"involvedInjuryId": <Id>
}
]
}
}Beispielschnittstelle (Vlocity Claim Object Model)
{
"input": {
"claimJson": {
"claimPropertyItems": {
"claimVehicle": [
{
"insuredItemId": null,
"claimantPartyId":null,
"claimantPartyName":null,
"claimantPartyRelationshipTypeId":null,
"claimantPartyRelationshipTypeName":null,
"additionalFields": {},
"productCode": "claimVehicle",
"productName": "Damaged Vehicle",
"productId": "01t3i0000001cWAAAY",
"autoBodyType": null,
"autoColor": null,
"autoLicNum": null,
"autoLicState": null,
"autoMake": null,
"autoModel": null,
"autoVIN": null,
"autoYear": null,
"claimDamage": null,
"claimDamageLoc": null,
"claimDrivable": false,
"claimImage": null,
"claimInsuredProp": false,
"claimEstimate": null,
"claimPropertyLoc": null,
"claimSeverity": null
}
]
},
"claimPartyItems": {
"claimWitness": [
{
"heldProductRelationshipId": null,
"partyId": null,
"partyName": null,
"claimPartyRelationshipTypeId":null,
"claimPartyRelationshipTypeName":null,
"additionalFields": {},
"productCode": "claimWitness",
"productName": "Witness",
"productId": "01t3i0000001cWCAAY",
"claimRel": null,
"claimStatement": null,
"claimTestify": false,
"persPhone": null,
"persSalutation": null,
"persAddress": null,
"persBirthdate": null,
"persEmail": null,
"persFirstName": null,
"persLastName": null,
"persMiddleName": null,
"persName": null
}
],
"claimInjuredPerson": [
{
"heldProductRelationshipId": null,
"partyId": null,
"partyName": null,
"claimPartyRelationshipTypeId":null,
"claimPartyRelationshipTypeName":null,
"additionalFields": {},
"productCode": "claimInjuredPerson",
"productName": "Injured Person",
"productId": "01t3i0000001cWEAAY",
"claimCarrier": null,
"claimInjury": null,
"claimPhysician": null,
"claimPolicyNumber": null,
"claimRel": null,
"claimStatement": null,
"claimTreatLoc": null,
"claimInsuredProp": false,
"claimEstimate": null,
"claimSeverity": null,
"persAddress": null,
"persBirthdate": null,
"persEmail": null,
"persFirstName": null,
"persLastName": null,
"persMiddleName": null,
"persName": null,
"persPhone": null,
"persSalutation": null,
"claimantPartyRelationshipTypeId":null
}
],
"claimDriver": [
{
"heldProductRelationshipId": null,
"partyId": null,
"partyName": null,
"claimPartyRelationshipTypeId":null,
"claimPartyRelationshipTypeName":null,
"additionalFields": {},
"productCode": "claimDriver",
"productName": "Driver",
"productId": "01t3i0000001cWBAAY",
"persAddress": null,
"Birthdate": null,
"persEmail": null,
"First Name": null,
"persIDJuris": null,
"perIDNumber": null,
"persIDType": null,
"LastName": null,
"MiddleName": null,
"NAME": null,
"persPhone": null,
"persSalutation": null,
"claimCarrier": null,
"claimInjury": null,
"claimInsured": false,
"claimPhysician": null,
"claimPolicyNumber": null,
"claimRel": null,
"claimStatement": null,
"claimTestify": false,
"claimTreatLoc": null
}
]
},
"additionalFields": {},
"policyHolderPartyId": null,
"policyHolderPartyName": null,
"policyHolderPartyRelationshipTypeId": null,
"policyHolderPartyRelationshipType": null,
"policyId": null,
"policyNumber": null,
"lossDate": null,
"productCode": "claimPerilAutoCollision",
"productName": "Auto Collision",
"productId": null
}
}
}
