U bent hier:
InsProviderNetworkService:getProvidersDetail
Met deze service kunt u informatie over aanbieders ophalen, inclusief groepsaffiliaties en locaties.
Methode:getProvidersDetail
De manier waarop het werkt...
-
Met behulp van de ID zoekt de service naar de record Aanbieder (Contactpersoon) met behulp van samengestelde SOQL met een aantal binnenste query's, inclusief gerelateerde records.
-
Als fieldSetName is ingesteld als onderdeel van invoer, worden de velden ervan gebruikt voor details van de provider.
-
Als er geen veldset is opgegeven in de invoer, wordt de volgende standaardset velden opgenomen in de details van de aanbieder (Contactpersoon):
-
ID
-
FirstName
-
LastName
-
E-mail
-
Telefoon
-
Fax
-
ProviderIdentifier__c
-
Has24x7Service__c
-
MailingStreet
-
MailingCity
-
MailingState
-
MailingPostalCode
-
MailingCountry
-
-
Het resultaat omvat AccountContactRelations (Locatie van aanbieder en Groep van aanbieders) met de volgende velden:
-
AccountID
-
Account.Name
-
Account.RecordTypeId
-
Account.BillingStreet
-
Account.BillingCity
-
Account.BillingState
-
Account.BillingPostalCode
-
Account.BillingCountry
-
IsPrimaryRelationship__c
-
OperatingHoursId__c
-
-
De resulterende gegevens in de vorm van een instantie van een contactpersoonsobject worden gedeserialiseerd en geparseerd naar Kaart <tekenreeks, object> en geretourneerd als onderdeel van een uitvoer-JSON in het
result.
Gebruikersinvoer
Invoer |
Beschrijving |
|---|---|
|
Record-ID van leverancier |
|
Veldsetnaam contactpersoonsobject |
Invoer-JSON
JSON-invoer wordt als volgt ingedeeld:
{
"Id": <Contact Id>,
"fieldSetName": <Contact object fieldset>
}Voorbeeld van JSON-invoer met gegevens:
{
"Id": "0035w0000396WMzAAM",
"fieldSetName": "ProviderFieldSet"
}Uitvoer-JSON
JSON-uitvoer wordt als volgt ingedeeld:
{
"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"
}Voorbeeld van JSON-uitvoer met gegevens.
{
"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"
}
