您位於此處:
InsProviderNetworkService:getProvidersDetail
此服務可讓您提取「提供者」資訊,包括群組成員及位置。
方法:getProvidersDetail
運作方式
-
使用識別碼,服務會使用內部查詢 (包括相關記錄) 的建構 SOQL 來搜尋提供者記錄 (連絡人)。
-
如果 fieldSetName 設定為輸入的一部分,則其欄位會用於提供者詳細資料。
-
如果輸入中未提供任何欄位集,則「提供者」詳細資料 (連絡人) 中將包含下列預設欄位集:
-
識別碼
-
名字
-
LastName
-
電子郵件
-
電話
-
傳真
-
ProviderIdentifier__c
-
Has24x7Service__c
-
郵寄地址 - 街道
-
郵寄地址 - 城市
-
MailingState
-
郵寄地址 - 郵遞區號
-
郵寄地址 - 國家
-
-
結果包含具有下列欄位的 AccountContactRelations (提供者位置與提供者群組):
-
AccountId
-
Account.Name
-
Account.RecordTypeId
-
Account.BillingStreet
-
Account.BillingCity
-
Account.BillingState
-
Account.BillingPostalCode
-
Account.BillingCountry
-
IsPrimaryRelationship__c
-
OperatingHoursId__c
-
-
系統會將「連絡人」物件例項格式的產生資料還原序列化,並剖析為「對應 <字串、物件」,並在
result節點中傳回輸出 JSON 的一部分。
輸入 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"
}
