Sie befinden sich hier:
InsProviderNetworkService:getProvidersDetail
Mit diesem Service können Sie Anbieterinformationen abrufen, einschließlich Gruppenzugehörigkeiten und Standorten.
Methode:getProvidersDetail
Funktionsweise
-
Mithilfe der ID sucht der Service mithilfe der erstellten SOQL mit einer Reihe von internen Abfragen, einschließlich verwandter Datensätze, nach dem Anbieterdatensatz (Kontakt).
-
Wenn fieldSetName als Teil der Eingabe festgelegt ist, werden die zugehörigen Felder wie für Anbieterdetails verwendet.
-
Wenn in der Eingabe kein Feldset angegeben ist, wird der folgende Standardsatz an Feldern in die Anbieterdetails (Kontakt) aufgenommen:
-
Id
-
Vorname
-
LastName
-
E-Mail
-
Telefon
-
Fax
-
ProviderIdentifier__c
-
Has24x7Service__c
-
MailingStreet
-
MailingCity
-
MailingState
-
MailingPostalCode
-
MailingCountry
-
-
Das Ergebnis enthält AccountContactRelations (Anbieterstandort und Anbietergruppe) mit den folgenden Feldern:
-
AccountId
-
Account.Name
-
Account.RecordTypeId
-
Account.BillingStreet
-
Account.BillingCity
-
Account.BillingState
-
Account.BillingPostalCode
-
Account.BillingCountry
-
IsPrimaryRelationship__c
-
OperatingHoursId__c
-
-
Die resultierenden Daten in Form einer Kontaktobjektinstanz werden deserialisiert und in "Zuordnung <Zeichenfolge, Objekt>" analysiert und als Teil einer Ausgabe-JSON im
result-Knoten zurückgegeben.
Benutzereingaben
Eingabe |
Beschreibung |
|---|---|
|
Anbieterdatensatz-ID |
|
Name des Kontaktobjekt-Feldsets |
Input JSON
Die JSON-Eingabe ist wie folgt formatiert:
{
"Id": <Contact Id>,
"fieldSetName": <Contact object fieldset>
}JSON-Beispieleingabe mit Daten:
{
"Id": "0035w0000396WMzAAM",
"fieldSetName": "ProviderFieldSet"
}Ausgabe-JSON
Die JSON-Ausgabe ist wie folgt formatiert:
{
"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-Beispielausgabe mit Daten.
{
"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"
}

