Loading
保险
InsProviderNetworkService:getProvidersDetail

InsProviderNetworkService:getProvidersDetail

此服务允许您检索提供商信息,包括小组附属关系和位置。

类:InsProviderNetworkService

方法:getProvidersDetail

工作原理

  1. 使用 ⁇ Id,服务使用带有一些内部查询(包括相关记录)的构造 SOQL 搜索提供商记录(联系人)。

  2. 如果 ⁇ fieldSetName ⁇ 设置为输入的一部分,则其字段用作提供商详细信息。

  3. 如果在输入中没有提供字段集,以下默认字段集将包含在提供商详细信息中(联系人):

    • ID

    • FirstName

    • LastName

    • 电子邮件

    • 电话

    • 传真

    • ProviderIdentifier__c

    • Has24x7Service__c

    • MailingStreet

    • MailingCity

    • MailingState

    • MailingPostalCode

    • MailingCountry

  4. 结果包含 ⁇ AccountContactRelations(提供商位置和提供商组) ⁇ 具有以下字段:

    • AccountId

    • Account.Name

    • Account.RecordTypeId

    • Account.BillingStreet

    • Account.BillingCity

    • Account.BillingState

    • Account.BillingPostalCode

    • Account.BillingCountry

    • IsPrimaryRelationship__c

    • OperatingHoursId__c

  5. 以 ⁇ a Contact object ⁇ instance 形式获得的数据被反序列化并解析为 ⁇ Map < String, Object>,并作为输出 JSON 的一部分返回 ⁇ result ⁇ 节点。

用户输入

输入

描述

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