Loading
Important Advisory: iOS Update Impacting CG Mobile ApplicationRead More
Insurance
InsPolicyService:getRuleLogs

InsPolicyService:getRuleLogs

This service retrieves rule logs for a target policy, sorted by execution date in ascending order.

Class: InsPolicyService

Method: getRuleLogs

How It Works

  1. This service retrieves logs by querying the ObjectAppliedResult__c table to see if there are any rows with a RecordId__c corresponding to the target object.

  2. If such rows exist, the service transforms the rows and returns to the caller in ascending order according to the AppliedDateTime_c field.

Remote Options

Option

Description

policyId

Id of target policy for which to retrieve rule logs

Input JSON

See the following sample of input JSON.

{ 
	"policyId": "02i6g000000I21EAAS"
}

Output JSON

See the following sample of output JSON.

{
    "result": [{
        "id": <Id>,
        "objectId": <Id>,
        "stateTransitionId": <Id>,
        "stateTransitionName": <String>,
        "executionDate": <Datetime>,
        "results": [{
            "id": <Id>,
            "name": <String>,
            "condition": <String>,
            "message": <String>,
            "action": <String>,
            "result": <Boolean>,
            "details": {
                <String>: <String>
            }
        }]
    }]
}

Results Description

This JSON includes these key/value pairs:

Key

Values

id

Id of rule

name

Name of rule

condition

Rule condition

message

Success message if rule condition evaluated true against target policy

Failure message if rule condition evaluated false against target policy

action

Name of action executed if rule condition evaluated true

result

Result of rule condition evaluation against target policy

details

Map of information associated with the target policy

 
Loading
Salesforce Help | Article