Loading
Insurance
Table of Contents
Select Filters

          No results
          No results
          Here are some search tips

          Check the spelling of your keywords.
          Use more general search terms.
          Select fewer filters to broaden your search.

          Search all of Salesforce Help
          InsClaimItemService:invokeInitiatePaymentIP

          InsClaimItemService:invokeInitiatePaymentIP

          Use this service to initiate loss or expense payments.

          Class: InsClaimItemService

          Method: invokeInitiatePaymentIP

          How It Works

          This service is triggered in these scenarios:

          • When you click Pay on each Loss/Expense line item (for per line payment) in the Claim Financials tab.

          • When you click Pay Selected Items (for multiple line payments) in the Claim Financials tab.

          1. The service parses the received Ids.

          2. The service checks if the Ids are Vlocity's ClaimLineItem__c or Salesforce's ClaimCoveragePaymentDetail.

          3. It then checks if the line items are of the same type (loss/expense) and in the same currency (if you have enabled multiple currencies in the org). The service throws an error if the validation fails or proceeds to the next step if the validation succeeds.

          4. The service calculates the sum of the line items and then checks the total amount against all applicable LIMIT Power Attributes of the Policy/Claim, if any.

          5. The service invokes the integration procedure defined under Custom Setting → Insurance Configuration Setup → ClaimInitiatePaymentIP.

            You can customize the Integration Procedure. The default integration procedure follows this workflow in the Salesforce Data Model:

            To use a financial authorization workflow, you add a remote action to the Integration Procedure and configure it to call InsClaimItemService: claimCoverageValuation.

            Error Handling

            If you want to configure any business rules to run between when a user clicks the Pay button and when the payment is processed, you can configure a Response Action step in the Integration Procedure. Use errorMessage as the Key and the description of the error message as the Value. If the error message is thrown before the createPayments Remote Action, then that error message is thrown to the user via a Toast Message on the Claims Financials page.

          Remote Options

          Remote Option

          Description

          itemIds

          A list of ClaimLineItem__c Ids (Vlocity Data Model) or ClaimCoveragePaymentDetail Ids (Salesforce Data Model).

          Input JSON

          Here's the format of the input JSON:

          { 
              "itemIds": [
                  {
                      "Id" : <Id>
                  },
                  {
                      "Id" : <Id>
                  }
              ]
          }

          Here's an example of the input JSON:

          { 
              "itemIds": [
                  {
                      "Id" : "01t000000000000001"
                  },
                  {
                      "Id" : "01t000000000000002"
                  }
              ]
          }

          Output JSON

          • The service throws an exception message if the type/currency isn’t the same.

          • The service throws an exception message if the total amount exceeds any applicable LIMIT Power Attribute defined in the policy/claim.

           
          Loading
          Salesforce Help | Article