Loading
시스템 관리자에 대한 피싱 방지 MFA 및 전 직원사용자 MFA 적용 안내 더 많이 읽기
보험
InsCensusService:updateMembersWithPlans

InsCensusService:updateMembersWithPlans

이 서비스를 사용하여 기본 구성원, 종속인, 사전 등록된 계획을 사용하여 인구 조사에 채웁니다.

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

클래스: InsCensusService

방법: updateMembersWithPlans

작동 방법

  • 서비스에서 updateMembers을 호출하여 구성원에 대한 데이터를 저장하고, JSON 객체의 구성원을 구문 분석하고 각 구성원에 대해 Id 및 isNewMember를 추가합니다.

  • 그런 다음, 서비스는 구성원의 사전 등록된 계획을 저장하도록 addPlanSelections에게 전화를 겁니다.

  • isNewMember가 true로 설정된 경우 addPlanSelections은 GroupCensusMemberPlan__c에 항목이 없는 새로 만든 구성원을 삭제하고 onlySaveMembersWithValidProducts 매개 변수가 true로 설정된 경우

원격 옵션

옵션

설명

censusId 

필수

업로드할 구성원이 속하거나 속하려는 인구 조사 ID입니다.

contractId가 계정/평균에 속하는지 확인하는 데 사용됩니다.

contractId 

필수

계정의 현재 계약 ID입니다.

각 구성원의 계획이 계약의 일부인지 확인하는 데 사용됩니다.

onlySaveMembersWithValidProducts

부울

true인 경우 GroupCensusMemberPlan__c 항목이 없는 새 구성원이 삭제됩니다.

duplicateKeys

문자열이 지정된 목록

GroupCensusMember__c의 fieldAPI 이름 목록

테이블에 이미 존재하는 구성원을 결정하는 데 사용되며, 이 경우 삽입 대신 업데이트가 실행됩니다.

입력 JSON

다음은 입력 JSON의 형식입니다.

{
   "censusId":"a4D4P000000hbjSUAQ",
   "contractId":"a4D4P000000yujQER",
   "onlySaveMembersWithValidProducts":true,
   "census":{
      "headers":[
         {
            "name":"vlocity_ins__FirstName__c"
         },
         {
            "name":"vlocity_ins__LastName__c"
         },
         {
            "name":"vlocity_ins__IsPrimaryMember__c"
         },
         {
            "name":"vlocity_ins__IsSpouse__c"
         },
         {
            "name":"vlocity_ins__MemberIdentifier__c"
         },
         {
            "name":"vlocity_ins__PrimaryMemberIdentifier__c"
         },
         {
            "name":"Id"
         },
         {
            "name":"vlocity_ins__ContractLineId__c"
         },
         {
            "name":"vlocity_ins__IsOptOut__c"
         },
         {
            "name":"vlocity_ins__OptOutTypes__c"
         }
      ],
      "members":[
         {
            "vlocity_ins__FirstName__c":"Maurice",
            "vlocity_ins__LastName__c":"Johnson",
            "vlocity_ins__IsPrimaryMember__c":true,
            "vlocity_ins__IsSpouse__c":false,
            "vlocity_ins__MemberIdentifier__c":"Maurice",
            "vlocity_ins__PrimaryMemberIdentifier__c":null,
            "vlocity_ins__ContractLineId__c":"a4D4P000000hbjSUAQ;a4D4P000000hbjSUAQ",
            "vlocity_ins__IsOptOut__c" : false,
            "vlocity_ins__OptOutTypes__c" :null
         },
         {
            "vlocity_ins__FirstName__c":"Lizzy",
            "vlocity_ins__LastName__c":"Johnson",
            "vlocity_ins__IsPrimaryMember__c":false,
            "vlocity_ins__IsSpouse__c":false,
            "vlocity_ins__MemberIdentifier__c":"Lizzy",
            "vlocity_ins__PrimaryMemberIdentifier__c":"Maurice",
            "vlocity_ins__ContractLineId__c":"a4D4P000000hbjSUAQ",
            "vlocity_ins__IsOptOut__c" :true,
            "vlocity_ins__OptOutTypes__c" :null
         },
         {
            "vlocity_ins__FirstName__c":"Jamie",
            "vlocity_ins__LastName__c":"Johnson",
            "vlocity_ins__IsPrimaryMember__c":false,
            "vlocity_ins__IsSpouse__c":true,
            "vlocity_ins__MemberIdentifier__c":"Jamie",
            "vlocity_ins__PrimaryMemberIdentifier__c":"Maurice",
            "vlocity_ins__ContractLineId__c":"a4D4P000000hbjSUAQ",
            "vlocity_ins__IsOptOut__c" : false,
            "vlocity_ins__OptOutTypes__c" :"Medical"
         },
         {
            "vlocity_ins__FirstName__c":"Bella",
            "vlocity_ins__LastName__c":"James",
            "vlocity_ins__IsPrimaryMember__c":true,
            "vlocity_ins__IsSpouse__c":false,
            "vlocity_ins__MemberIdentifier__c":"Bella",
            "vlocity_ins__PrimaryMemberIdentifier__c":null,
            "vlocity_ins__ContractLineId__c":null,
            "vlocity_ins__IsOptOut__c" :true,
            "vlocity_ins__OptOutTypes__c" :null
         }
      ]
   },
   "duplicateKeys" : [
      "vlocity_ins__FirstName__c",
      "vlocity_ins__LastName__c"
   ]
}

출력 JSON

다음은 샘플 출력 JSON입니다.

{  
   "errors":[  
      {  
         "error":"ContractLineItem__c value is not valid:8004P000000zJKjQAM; Medical",
         "vlocity_ins__FirstName__c":"Maurice",
         "vlocity_ins__LastName__c":"Johnson",
         "vlocity_ins__IsPrimaryMember__c":true,
         "vlocity_ins__IsSpouse__c":false,
         "vlocity_ins__MemberIdentifier__c":"Maurice",
         "vlocity_ins__PrimaryMemberIdentifier__c":null
      }
   ],
   "censusMemberIds":[  
      "a4C4P000000ed6dUAA",
      "a4C4P000000ed6eUAA",
      "a4C4P000000ed6fUAA"
   ],
   "memberPlanIds":[  
      "a4B4P000006jKsMUAU",
      "a4B4P000006jKsNUAU",
      "a4B4P000006jKsOUAU",
      "a4B4P000006jKsPUAU"
   ]
}
 
로드 중
Salesforce Help | Article