You are here:
InsPolicyService:getPolicyDetails
Use this service to get the coverages, insured items, pricing, and other information for an existing insurance policy, including optional coverages that weren't selected.
To get the policy details, you must have read access to the Insurance Policy records. Configure your sharing settings and sharing rules to provide access to the requested policy record. See Share Objects and Fields.
For example, you can use this service to get and display existing policy details in a policy modification OmniScript or Integration Procedure.
How It Works
-
Uses the
policyIdorassetIdto get the policy record and its associated coverages and insured items. -
Goes to the product spec associated with the policy to get unselected optional coverage specs.
-
Returns a JSON structure that includes insured items, policy coverages, and optional coverages.
Surcharges
If the calculateTaxesAndFees service is used, the following fields are
returned for the following records and for the policy:
For each AssetCoverage__c, AssetInsuredItem__c, and
AssetPartyRelationship__c record, the following fields are returned, as
long as the fields are not null:
-
taxAmountandTaxAmount__c(values are equivalent) -
feeAmountandFeeAmount__c(values are equivalent) -
totalTaxFeeAmount__candtotalTaxFeeAmount(equivalent toTaxAmount__c+FeeAmount__c) -
ProratedTaxAmount__c -
ProratedFeeAmount__c -
TotalAmount__c -
TotalProratedAmount__c
The following fields are returned for the policy if the fields are not null:
-
TotalTaxAmount__c -
TotalFeeAmount__c -
totalTaxFeeAmount__candTotalTaxFeeAmount(equivalent toTotalTaxAmount__c+TotalFeeAmount__c) -
TotalTaxForTerm__c -
TotalFeeForTerm__c -
TotalAmount__c -
TotalAmountForTerm__c
Remote Options
Option |
Description |
|---|---|
or
|
Required. The Id of the policy (asset) to get details for. The sObject type for this Id determines which data model the service uses, Asset-based or Salesforce FSC. If you provide an
If you provide a |
|
Returns coverage details for the specified instance only. |
|
Optional. Enter a DataRaptor to use to retrieve policy (asset) information. If you specify both
|
|
Optional. Enter a custom class to use to retrieve policy (asset) information. This value overrides the default class used to retrieve information. |
|
Defaults to
When set to If provided and set to
|
|
When set to
|
|
When set to
|
Output JSON
The service returns an array of records from the policy (asset) object. These records are structured similarly to product records, but include additional fields.
The service also returns records it pulls from the product, including optional coverages that aren't part of the policy object (they weren't selected as coverages for this policy).
"totalSize": 1,
"records": [{
"displaySequence": -1,
"Id": "02if4000001vM1LAAU",
"productId": "01tf4000001lKNQAA2",
"productName": "Watercraft",
"EffectiveStart": "2018-05-21",
"EffectiveEnd": "2019-05-20",
"Price": 20,
"PricingFormula__c": "wcPropertyNet + wcLiabilityNet + wcUninsuredNet + wcMedPaymentsNet + wcPersonalEffectsNet + wcTrailerNet + wcTowingNet + wcFishingEquipNet + wcBoatLiftNet",
"ProductCode": "Watercraft",
"CalculatedPriceData": {
"ID": "0",
"wcBoatLiftNet": 20
},
"childProducts": {
"totalSize": 1,
"records": [...]
]In addition to fields described in the Product JSON Structure Model,
the output JSON for this service includes the following fields from the policy (asset)
object (using the GetPolicyDetailsFields field set):
-
productId -
productName -
EffectiveStart -
EffectiveEnd -
StandardPremium__c -
PricingSource__c -
PricingFormula__c -
productCode -
term -
AssetCoverage__cAll accessible fields
-
AssetInsuredItem__cAll accessible fields
Examples
The service is typically used in OmniScripts that modify or cancel policies.

