Loading
保險
InsClaimItemService:getClaimLineItemFields

InsClaimItemService:getClaimLineItemFields

使用此服務可取回欄位集的欄位清單 (以及欄位的值 (選用)。此欄位集特定於特定 CoverageSpec。

類別:InsClaimItemService

方法:getClaimLineItemFields

定義自訂欄位集:

  1. 在 ClaimCoveragePaymentDetail / ClaimLineItem__c 的「物件管理員」頁面中建立欄位集。

  2. 在「設定」→「自訂設定」→「保險組態設定」→「管理」中建立記錄。

    • 名稱 = ClaimCoverage + : + <CovSpec 的產品代碼>。例如:ClaimCoverage:autoBIPD

    • 設定值 = ClaimLineItem__c / ClaimCoveragePaymentDetail 完全合格 (包含命名空間 (若有的話) fieldSet 名稱。

運作方式

  1. 從「索賠涵蓋範圍識別碼」中,取得 PolicyCoverage 的 CovSpec ProductCode。

  2. 從「自訂設定」取得 fieldSet 名稱。

  3. 取得每個欄位的詳細資料,包括 isRequired、dataType、label 和 fieldName。ClaimCoveragePaymentDetail 和 ClaimLineItem__c 之間常見的欄位名稱現在會使用物件介面欄位。若否,則會取得欄位的 ApiName。

  4. 針對 dataType=Picklist,選項清單選項會包含為「選項」。

  5. 針對福利類型,此服務會根據 claimId 取用所有 PowerAttributes 的福利類型,然後將其列為選項清單選項。

  6. 編輯「損失」項目時 (會在選項中傳遞 claimItemId),該記錄欄位的對應值會包含在輸出中。

遠端選項

選項

描述

claimId

必要。

服務取得索賠條列項目欄位的索賠識別碼。

claimCoverageId

必要。

索賠涵蓋範圍的識別碼。

claimItemId

選擇性。

索賠項目的識別碼。

輸入 JSON

以下是輸入 JSON 的格式:

{ 
	"claimId": <Id>,
	"claimCoverageId": <Id>,
	"claimItemId": <Id>
}

以下是輸入 JSON 的範例:

{ 
	"claimId": '01t000000000000001',
	"claimCoverageId": '01t000000000000002',
	"claimItemId": '01t000000000000003'
}

輸出 JSON

以下是輸出 JSON 的格式:

{  
   	"isDefault": <boolean>,
	"fieldNameList": [<String>, <String>, ..,],
	"fieldList": [<JSON>, <JSON>, ...]
}

以下是輸出 JSON 的範例:

{
  "isDefault": false,
  "fieldList": [
    {
      "options": [
        {
          "Name": "Hospital Confinement",
          "Id": "Hospital Confinement"
        },
        {
          "Name": "Transportation",
          "Id": "Transportation"
        }
      ],
      "isNillable": true,
      "isUpdateable": true,
      "isCreatable": true,
      "isRequired": false,
      "dataType": "PICKLIST",
      "label": "Benefit Name",
      "fieldName": "benefitType"
    },
    {
      "isNillable": true,
      "isUpdateable": true,
      "isCreatable": true,
      "isRequired": false,
      "dataType": "INTEGER",
      "label": "Limit Unit Count",
      "fieldName": "unitCount"
    },
    {
      "options": [
        {
          "Id": "New",
          "Name": "New"
        },
        {
          "Id": "Open",
          "Name": "Open"
        },
        {
          "Id": "Pending Authority",
          "Name": "Pending Authority"
        },
        {
          "Id": "Authority Approved",
          "Name": "Authority Approved"
        },
        {
          "Id": "Authority Denied",
          "Name": "Authority Denied"
        },
        {
          "Id": "Payment Pending",
          "Name": "Payment Pending"
        },
        {
          "Id": "Paid",
          "Name": "Paid"
        },
        {
          "Id": "Closed W/O Pay",
          "Name": "Closed W/O Pay"
        },
        {
          "Id": "Cancelled",
          "Name": "Cancelled"
        },
        {
          "Id": "Stopped",
          "Name": "Stopped"
        }
      ],
      "isNillable": true,
      "isUpdateable": true,
      "isCreatable": true,
      "isRequired": false,
      "dataType": "PICKLIST",
      "label": "Status",
      "fieldName": "status"
    },
    {
      "options": [
        {
          "Id": "Loss",
          "Name": "Loss"
        },
        {
          "Id": "Expense",
          "Name": "Expense"
        }
      ],
      "isNillable": true,
      "isUpdateable": true,
      "isCreatable": true,
      "isRequired": false,
      "dataType": "PICKLIST",
      "label": "Type",
      "fieldName": "type"
    }
  ],
  "fieldNameList": [
    "benefitType",
    "unitCount",
    "status",
    "type"
  ]
}
 
正在載入
Salesforce Help | Article