Loading
保險
InsEnrollmentServiceStd:getPolicyDetails

InsEnrollmentServiceStd:getPolicyDetails

取得「主要群組普查成員」的「保單」記錄。

類別:InsEnrollmentServiceStd

方法:getPolicyDetails

實例

accountId 成員 isPersonAccountEnabled
c10001

{

"FirstName":「Allan」

"LastName":"Border"

}

true

運作方式

  1. 如果提供成員資訊,則服務會剖析「連絡人」或「個人Account 識別碼」的成員資料。

    1. 如果 isPersonAccountEnabled 為 true,則服務會使用 PersonAccount 識別碼呼叫 findAccounts 服務。

    2. 如果 isPersonAccountEnabled 為 false,則服務會使用「連絡人識別碼」呼叫 findContacts 服務。

  2. 如果已提供「連絡人識別碼」,則服務會使用「連絡人識別碼」比對 InsurancePolicyParticipant 實體中的 ContactId 欄位。

  3. 如果已提供「帳戶識別碼」,則服務會使用「帳戶識別碼」比對 InsurancePolicyParticipant 實體中的 AccountId 欄位。

  4. 服務會傳回「保單」記錄,其「狀態」欄位未設定為「已取消」或「已取消」。

服務行為

瞭解不同的輸入如何影響服務輸出。

輸入 服務輸出
沒有成員、沒有 contactsIds 和沒有 accountIds 為 groupAccountId 或 members 或 accountIds 或 contactIds 指定有效值。

輸入

輸入 描述
groupAccountId

必要。

群組帳戶的識別碼

members or contactIds or accountId

必要。

成員陣列,其中包含以下三個欄位中的至少一個:FirstName、LastName、Email

或

主要普查成員的連絡人識別碼陣列

或

array of.Person主要普查成員的帳戶識別碼

isPersonAccountEnabled

選擇性。

表示是否在組織中啟用 PersonAccounts。

輸入 JSON

以下是範例輸入 JSON:

{
    "accountId": "001RN0000035v63YAA",
    "members": [
        {
            "FirstName": "Allan",
            "LastName": "Border"
        }
    ]
} 

輸出 JSON

以下是範例輸出 JSON:

{
  "response": {
    "StatusMessage": "success",
    "StatusCode": "Success",
    "members": [
      {
        "seqId": null,
        "policies": [
          {
            "participants": [
              {
                "Name": "Laura Border",
                "Id": "0aoRN0000000Hs0YAE",
                "RelationshipToInsured": "Spouse"
              },
              {
                "Name": "Allan Border",
                "Id": "0aoRN0000000Hs1YAE",
                "RelationshipToInsured": "Self"
              }
            ],
            "EffectiveDate": "2023-08-07",
            "Name": "Dental Premium Enrollment",
            "coverages": [
              {
                "Id": "0cYRN0000000OAe2AM",
                "CoverageName": "Dental Premium Enrollment",
                "InsurancePolicyParticipantId": "0aoRN0000000Hs1YAE"
              },
              {
                "Id": "0cYRN0000000OAf2AM",
                "CoverageName": "Dental Premium Enrollment",
                "InsurancePolicyParticipantId": "0aoRN0000000Hs1YAE"
              }
            ],
            "Id": "0YTRN0000000LS84AM",
            "ExpirationDate": "2024-05-15"
          },
          {
            "participants": [
              {
                "Name": "Laura Border",
                "Id": "0aoRN0000000HsAYAU",
                "RelationshipToInsured": "Spouse"
              },
              {
                "Name": "Allan Border",
                "Id": "0aoRN0000000HsBYAU",
                "RelationshipToInsured": "Self"
              }
            ],
            "EffectiveDate": "2023-08-07",
            "Name": "VSP Premium Enrollment",
            "coverages": [
              {
                "Id": "0cYRN0000000OAo2AM",
                "CoverageName": "VSP Premium Enrollment",
                "InsurancePolicyParticipantId": "0aoRN0000000HsBYAU"
              },
              {
                "Id": "0cYRN0000000OAp2AM",
                "CoverageName": "VSP Premium Enrollment",
                "InsurancePolicyParticipantId": "0aoRN0000000HsBYAU"
              }
            ],
            "Id": "0YTRN0000000LSD4A2",
            "ExpirationDate": "2024-05-15"
          },
          {
            "participants": [
              {
                "Name": "Laura Border",
                "Id": "0aoRN0000000HsKYAU",
                "RelationshipToInsured": "Spouse"
              },
              {
                "Name": "Allan Border",
                "Id": "0aoRN0000000HsLYAU",
                "RelationshipToInsured": "Self"
              }
            ],
            "EffectiveDate": "2023-08-07",
            "Name": "Dental Premium Enrollment",
            "coverages": [
              {
                "Id": "0cYRN0000000OAy2AM",
                "CoverageName": "Dental Premium Enrollment",
                "InsurancePolicyParticipantId": "0aoRN0000000HsLYAU"
              },
              {
                "Id": "0cYRN0000000OAz2AM",
                "CoverageName": "Dental Premium Enrollment",
                "InsurancePolicyParticipantId": "0aoRN0000000HsLYAU"
              }
            ],
            "Id": "0YTRN0000000LSI4A2",
            "ExpirationDate": "2024-05-15"
          },
          {
            "participants": [
              {
                "Name": "Laura Border",
                "Id": "0aoRN0000000HsUYAU",
                "RelationshipToInsured": "Spouse"
              },
              {
                "Name": "Allan Border",
                "Id": "0aoRN0000000HsVYAU",
                "RelationshipToInsured": "Self"
              }
            ],
            "EffectiveDate": "2023-08-07",
            "Name": "VSP Premium Enrollment",
            "coverages": [
              {
                "Id": "0cYRN0000000OB82AM",
                "CoverageName": "VSP Premium Enrollment",
                "InsurancePolicyParticipantId": "0aoRN0000000HsVYAU"
              },
              {
                "Id": "0cYRN0000000OB92AM",
                "CoverageName": "VSP Premium Enrollment",
                "InsurancePolicyParticipantId": "0aoRN0000000HsVYAU"
              }
            ],
            "Id": "0YTRN0000000LSN4A2",
            "ExpirationDate": "2024-05-15"
          },
          {
            "participants": [
              {
                "Name": "Laura Border",
                "Id": "0aoRN0000000HseYAE",
                "RelationshipToInsured": "Spouse"
              },
              {
                "Name": "Allan Border",
                "Id": "0aoRN0000000HsfYAE",
                "RelationshipToInsured": "Self"
              }
            ],
            "EffectiveDate": "2023-08-07",
            "Name": "Dental Premium Enrollment",
            "coverages": [
              {
                "Id": "0cYRN0000000OBI2A2",
                "CoverageName": "Dental Premium Enrollment",
                "InsurancePolicyParticipantId": "0aoRN0000000HsfYAE"
              },
              {
                "Id": "0cYRN0000000OBJ2A2",
                "CoverageName": "Dental Premium Enrollment",
                "InsurancePolicyParticipantId": "0aoRN0000000HsfYAE"
              }
            ],
            "Id": "0YTRN0000000LSS4A2",
            "ExpirationDate": "2024-05-15"
          },
          {
            "participants": [
              {
                "Name": "Laura Border",
                "Id": "0aoRN0000000HsyYAE",
                "RelationshipToInsured": "Spouse"
              },
              {
                "Name": "Allan Border",
                "Id": "0aoRN0000000HszYAE",
                "RelationshipToInsured": "Self"
              }
            ],
            "EffectiveDate": "2023-08-07",
            "Name": "VSP Premium Enrollment",
            "coverages": [
              {
                "Id": "0cYRN0000000OBc2AM",
                "CoverageName": "VSP Premium Enrollment",
                "InsurancePolicyParticipantId": "0aoRN0000000HszYAE"
              },
              {
                "Id": "0cYRN0000000OBd2AM",
                "CoverageName": "VSP Premium Enrollment",
                "InsurancePolicyParticipantId": "0aoRN0000000HszYAE"
              }
            ],
            "Id": "0YTRN0000000LSc4AM",
            "ExpirationDate": "2024-05-15"
          },
          {
            "participants": [
              {
                "Name": "Laura Border",
                "Id": "0aoRN0000000HtIYAU",
                "RelationshipToInsured": "Spouse"
              },
              {
                "Name": "Allan Border",
                "Id": "0aoRN0000000HtJYAU",
                "RelationshipToInsured": "Self"
              }
            ],
            "EffectiveDate": "2023-08-07",
            "Name": "Dental Premium Enrollment",
            "coverages": [
              {
                "Id": "0cYRN0000000OBw2AM",
                "CoverageName": "Dental Premium Enrollment",
                "InsurancePolicyParticipantId": "0aoRN0000000HtJYAU"
              },
              {
                "Id": "0cYRN0000000OBx2AM",
                "CoverageName": "Dental Premium Enrollment",
                "InsurancePolicyParticipantId": "0aoRN0000000HtJYAU"
              }
            ],
            "Id": "0YTRN0000000LSm4AM",
            "ExpirationDate": "2024-05-15"
          },
          {
            "participants": [
              {
                "Name": "Laura Border",
                "Id": "0aoRN0000000HtSYAU",
                "RelationshipToInsured": "Spouse"
              },
              {
                "Name": "Allan Border",
                "Id": "0aoRN0000000HtTYAU",
                "RelationshipToInsured": "Self"
              }
            ],
            "EffectiveDate": "2023-08-07",
            "Name": "VSP Premium Enrollment",
            "coverages": [
              {
                "Id": "0cYRN0000000OC62AM",
                "CoverageName": "VSP Premium Enrollment",
                "InsurancePolicyParticipantId": "0aoRN0000000HtTYAU"
              },
              {
                "Id": "0cYRN0000000OC72AM",
                "CoverageName": "VSP Premium Enrollment",
                "InsurancePolicyParticipantId": "0aoRN0000000HtTYAU"
              }
            ],
            "Id": "0YTRN0000000LSr4AM",
            "ExpirationDate": "2024-05-15"
          }
        ],
        "accountId": "001RN000003IYMBYA4"
      }
    ]
  },
  "errorCode": "INVOKE-200",
  "error": "OK"
}
 
正在載入
Salesforce Help | Article