Loading
保险
InsCensusService:updateMembers

InsCensusService:updateMembers

使用此服务将人口普查中的成员更新为输入 JSON 中的值。来宾用户访问权限为此服务启用。

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

类:InsCensusService

方法:updateMembers

工作原理

此服务从输入 JSON 中提取成员,并使用新数据更新人口普查(根据给定的censusId)。

备注
备注

如果成员列表包含主要成员和依赖项,输入必须包含所有成员的 ID (vlocity_ins__MemberIdentifier__c)。所有值应是唯一的。

远程选项

选项

说明

censusId

必需。

要更新成员的普查 ID。

census

必需。

输入 JSON,其中包含要更新的成员的详细信息。

输入 JSON

输入 JSON 包括 headers,它列出了要更新的字段;和 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"
        }
    ],
    "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__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": null,
	             "vlocity_ins__Email__c": "test1@vlocity.com"
        }
    ]
}

输出 JSON

服务不返回输出 JSON。如果任何条目有错误,这些条目会列在输出中。

{  
   "errors":[  
      {  
	      "error":"Birthdate is invalid",
            "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": null,
	             "vlocity_ins__Email__c": "test1@vlocity.com"
        }
   ],
   "censusMemberIds":[  
      "a4C4P000000ed6dUAA"
   ]
}
 
正在加载
Salesforce Help | Article