Loading
保险
InsCensusService:getMembers

InsCensusService:getMembers

使用此服务检索普查成员。它还检索字段。来宾用户访问权限为此服务启用。

重要
重要 从 Winter '23 开始,我们启用了 InsCensusServiceStd:getMembers 服务,以便与 Salesforce Standard Data Model for Financial Services Cloud 和 Health Cloud 一起使用。现有客户可以继续使用此服务,但保险受管软件包不会提供进一步增强。

类:InsCensusService

方法:getMembers

工作原理

此服务有两个主要功能:

  1. 根据字段集名称参数中定义的字段集,检索 GroupCensusMember__c 字段列表。输出始终包含 MemberIdentifier__c、PrimaryMemberIdentifier__c、RelatedCensusMemberId__c、IsPrimaryMember__c 和 IsSpouse__c,即使它们不在字段集中。

  2. 检索原始GroupCensusMember__c记录。

    1. 该服务使用 censusId ⁇ 从 ⁇ 检索人口普查成员GroupCensusMember__c。

    2. 如果偏移参数有值,它会在偏移后检索 2000 行。

    3. 成员列表会放入 ⁇ members ⁇ 节点。

远程选项

选项

描述

censusId

必填

检索具有成员的人口普查。

contractId

必填

  • 客户当前合同的 ID。

  • 检索产品名称、产品类型和合同行项目 ID 作为ContractLineId__c标题字段中的选项。

fieldsetName

可选

  • 如果它具有有效值,则检索属于字段集的GroupCensusMember__c字段。

  • 如果值无效,则不会返回字段。

  • 如果没有值,检索属于默认字段集 (EditableTable) 的 ⁇ GroupCensusMember__c 字段

offset

可选

  • 如果没有值,检索前 2000 ⁇ GroupCensusMember__c 行(按 ID 排序)。

  • 如果它具有有效值,则 ⁇ it 会检索偏移 之后接下来的 2000 ⁇ GroupCensusMember__c 行(按 ID 排序)。例如:如果您有以下 GroupCensusMember__c 行

    ID 名称

    aa1 Joe

    aa2 Ben

    aa 3 Hardy

    aa4 Ruth

    ....

    aa2000 Rex

    aa2001 Gina

    aa2002 Liz

    ....

    aa4000 Shin

    aa4001 Rob

    如果未指定偏移。 将检索第 1 - 2000 行(从 Joe 到 Rex)。如果偏移设置为 aa1,则检索的行将是 2-2001 行(Ben 到 Gina)。如果偏移设置为 aa2000,则检索的行将是行 2001 - 4000(Gina 到 Shin)。

输入 JSON

此服务不需要输入 JSON。

输出 JSON

该服务返回一个输出 JSON,格式如下,其中包含普查成员的详细信息,其中 headers 是根据普查成员字段集EditableTable的有效字段列表,members 是成员列表,其中包含每个成员的 fieldId。

{
  "headers": [
    {
      "type": "STRING",
      "label": "Last Name",
      "fieldId": "",
      "name": "vlocity_ins__LastName__c"
    },
    {
      "type": "STRING",
      "label": "First Name",
      "fieldId": "",
      "name": "vlocity_ins__FirstName__c"
    },
    {
      "type": "DOUBLE",
      "label": "FTE",
      "fieldId": "",
      "name": "vlocity_ins__FTE__c"
    },
    {
      "type": "PICKLIST",
      "label": "Gender",
      "fieldId": "",
      "name": "vlocity_ins__Gender__c"
    },
    {
      "type": "DATE",
      "label": "Birthday",
      "fieldId": "",
      "name": "vlocity_ins__Birthdate__c"
    },
    {
      "type": "BOOLEAN",
      "label": "Is Spouse",
      "fieldId": "",
      "name": "vlocity_ins__IsSpouse__c"
    },
    {
      "type": "BOOLEAN",
      "label": "Primary",
      "fieldId": "",
      "name": "vlocity_ins__IsPrimaryMember__c"
    },
    {
      "type": "REFERENCE",
      "label": "Group Class",
      "fieldId": "",
      "name": "vlocity_ins__GroupClassId__c"
    },
    {
      "type": "STRING",
      "label": "Primary Member Identifier",
      "fieldId": "",
      "name": "vlocity_ins__PrimaryMemberIdentifier__c"
    },
    {
      "type": "STRING",
      "label": "Member Identifier",
      "fieldId": "",
      "name": "vlocity_ins__MemberIdentifier__c"
    },
    {
      "type": "EMAIL",
      "label": "Email",
      "fieldId": "",
      "name": "vlocity_ins__Email__c"
    },
    {
      "type": "REFERENCE",
      "label": "Primary Census Member",
      "fieldId": "",
      "name": "vlocity_ins__RelatedCensusMemberId__c"
    }
  ],
  "members": [
    {
      "vlocity_ins__LastName__c": "Robbins",
      "vlocity_ins__FirstName__c": "Timmy",
      "vlocity_ins__FTE__c": 1,
      "vlocity_ins__Gender__c": "Male",
      "vlocity_ins__Birthdate__c": "1985-12-13",
      "vlocity_ins__IsSpouse__c": true,
      "vlocity_ins__IsPrimaryMember__c": true,
      "vlocity_ins__GroupClassId__c": "a3yf4000000LdtrAAC",
      "vlocity_ins__MemberIdentifier__c": "1",
	       "vlocity_ins__PrimaryMemberIdentifier__c": null,
	       "vlocity_ins__Email__c": "test@vlocity.com",
		"vlocity_ins__RelatedCensusMemberId__c" : null
    },
    {
      "vlocity_ins__LastName__c": "Robbins",
      "vlocity_ins__FirstName__c": "Jason",
      "vlocity_ins__FTE__c": 1,
      "vlocity_ins__Gender__c": "Male",
      "vlocity_ins__Birthdate__c": "1985-10-13",
      "vlocity_ins__IsSpouse__c": true,
      "vlocity_ins__IsPrimaryMember__c": true,
      "vlocity_ins__GroupClassId__c": "a3yf4000000LdtrAAC",
      "vlocity_ins__MemberIdentifier__c": "2",
	       "vlocity_ins__PrimaryMemberIdentifier__c":"1",
	       "vlocity_ins__Email__c": "test1@vlocity.com",
		"vlocity_ins__RelatedCensusMemberId__c" : "a3yf4000000MdtrAAC"
    }
  ]
}
 
正在加载
Salesforce Help | Article