Loading
보험
InsCensusService:updateMembers

InsCensusService:updateMembers

이 서비스를 사용하여 인구 조사의 구성원을 입력 JSON의 값으로 업데이트합니다. 이 서비스에 게스트 사용자 액세스가 활성화되어 있습니다.

중요
중요 Winter '23부터 Financial Services Cloud 및 Health Cloud용 Salesforce 표준 데이터 모델과 함께 작동하도록 InsCensusServiceStd:updateMembers 서비스를 사용할 수 있습니다. 기존 고객은 계속해서 이 서비스를 사용할 수 있지만 보험 관리형 패키지에서는 추가 개선 사항이 제공되지 않습니다.

클래스: InsCensusService

방법: updateMembers

작동 방법

이 서비스는 입력 JSON에서 구성원을 가져와 주어진 censusId에 따라 새로운 데이터로 인구 조사 내용을 업데이트합니다.

노트
노트

구성원 목록에 기본 구성원 및 종속인이 포함된 경우 입력에 모든 구성원의 ID(vlocity_ins__MemberIdentifier__c)가 있어야 합니다. 모든 값은 고유해야 합니다.

원격 옵션

옵션

설명

censusId

(필수)

업데이트할 구성원이 있는 인구 조사 ID입니다.

census

(필수)

업데이트할 구성원에 대한 세부 사항이 포함된 JSON을 입력합니다.

입력 JSON

입력 JSON에는 업데이트할 필드를 나열하는 headers 및 fieldId를 비롯한 해당 필드-값 쌍의 구성원을 나열하는 members이 포함됩니다.

{
    "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