Loading
보험
InsProviderNetworkService:getProvidersDetail

InsProviderNetworkService:getProvidersDetail

이 서비스를 사용하면 그룹 제휴 및 위치 등 제공자 정보를 검색할 수 있습니다.

클래스:InsProviderNetworkService

방법:getProvidersDetail

작동 방법

  1. ID를 사용하여 서비스는 관련 레코드를 포함한 여러 내부 쿼리와 함께 구성된 SOQL을 사용하여 공급자 레코드(연락처)를 검색합니다.

  2. fieldSetName이 입력의 일부로 설정된 경우 공급자 세부 사항에 사용되는 필드입니다.

  3. 입력에 필드 집합을 제공하지 않을 경우 제공자 세부 사항(연락처)에 다음의 기본 필드 집합이 포함됩니다.

    • ID

    • FirstName

    • LastName

    • 이메일

    • 전화

    • 팩스

    • ProviderIdentifier__c

    • Has24x7Service__c

    • 메일링 주소

    • 메일링 구/군/시

    • 메일링 시/도

    • 메일링 우편 번호

    • 메일링 국가

  4. 결과에 다음 필드가 포함된 AccountContactRelations(공급자 위치 및 공급자 그룹)가 포함됩니다.

    • AccountId

    • Account.Name

    • Account.RecordTypeId

    • Account.BillingStreet

    • Account.BillingCity

    • Account.BillingState

    • Account.BillingPostalCode

    • Account.BillingCountry

    • IsPrimaryRelationship__c

    • OperatingHoursId__c

  5. Contact 객체 인스턴스 형태의 결과 데이터는 역직렬화되고 Map <String, Object>로 구문 분석되고 result 노드에서 출력 JSON의 일부로 반환됩니다.

사용자 입력

입력

설명

id

제공자 레코드 ID

fieldSetName

연락처 개체 필드 집합 이름

입력 JSON

JSON 입력 형식은 다음과 같습니다.

{
  "Id": <Contact Id>,
  "fieldSetName": <Contact object fieldset>
}

데이터가 있는 JSON 입력 샘플:

{
  "Id": "0035w0000396WMzAAM",
  "fieldSetName": "ProviderFieldSet"
}

출력 JSON

JSON 출력의 형식은 다음과 같습니다.

{
  "fieldSetName": <COntact fieldset used during service call>,
  "Id": <Provider/Contact record ID used during service call>,
  "result": {
    "RecordTypeId": <Contact Record Type>,
    "Id": <Contact record ID>,
    "Field 1": <Contact object field value>,
    "Field 2": <Contact object field value>,
    "AccountContactRelations": {
      "records": [
        {
          "Account": {
            "Id": <Account record ID>,
            "BillingCountry": <Account.BillingCountry value>,
            "BillingCity": <Account.BillingCity value>,
            "RecordTypeId": <Account Record Type>,
            "Name": <Account.Name value>
          },
          "IsPrimaryRelationship__c": <Primary relationship indicator>,
          "AccountId": <Account record ID>,
          "Id": <AccountContactRelation record ID>,
          "ContactId": <Contact record ID>
        }
      "done": true,
      "totalSize": <AccountContactRelations count>
    }
  },
  "error": "OK"
}

데이터가 있는 샘플 JSON 출력.

{
  "fieldSetName": "ProviderFieldSet",
  "Id": "0035w0000396WMzAAM",
  "result": {
    "RecordTypeId": "0125w000001FVCuAAO",
    "Id": "0035w0000396WMzAAM",
    "Email": "lesliejohann@email.com",
    "Name": "Leslie Johann",
    "AccountContactRelations": {
      "records": [
        {
          "Account": {
            "Id": "0015w00002EiEyNAAV",
            "BillingCountry": "Germany",
            "BillingCity": "Berlin",
            "RecordTypeId": "0125w000001FVChAAO",
            "Name": "Berlin Facility (Location)"
          },
          "IsPrimaryRelationship__c": false,
          "AccountId": "0015w00002EiEyNAAV",
          "Id": "07k5w00000JPRM0AAP",
          "ContactId": "0035w0000396WMzAAM"
        },
        {
          "Account": {
            "Id": "0015w00002EiF2KAAV",
            "RecordTypeId": "0125w000001FVCgAAO",
            "Name": "First EU Medical Group"
          },
          "IsPrimaryRelationship__c": false,
          "AccountId": "0015w00002EiF2KAAV",
          "Id": "07k5w00000JPRMFAA5",
          "ContactId": "0035w0000396WMzAAM"
        }
      ],
      "done": true,
      "totalSize": 2
    }
  },
  "error": "OK"
}
 
로드 중
Salesforce Help | Article