breadcrumbDescription
InsProviderNetworkService:getProvidersDetail
Denne tjeneste giver dig mulighed for at hente udbyderoplysninger, herunder gruppetilknytninger og placeringer.
Metode:getProvidersDetail
Sådan fungerer det
-
Ved at bruge Id'et søger tjenesten efter udbyderregistreringen (Kontakt) ved brug af bygget SOQL med et antal indvendige forespørgsler, herunder relaterede registreringer.
-
Hvis fieldSetName er angivet som en del af input, bruges dens felter som udbyderdetaljer.
-
Hvis der ikke angives noget feltsæt i inputtet, vil følgende standardfeltsæt blive inkluderet i udbyderdetaljerne (Kontakt):
-
Id
-
FirstName
-
LastName
-
Mail
-
Telefon
-
Fax
-
ProviderIdentifier__c
-
Has24x7Service__c
-
MailingStreet
-
MailingCity
-
MailingState
-
MailingPostalCode
-
MailingCountry
-
-
Resultatet inkluderer AccountContactRelations (udbyderplacering og udbydergruppe) med følgende felter:
-
AccountId
-
Account.Name (Konto.navn)
-
Account.RecordTypeId
-
Account.BillingStreet
-
Account.BillingCity
-
Account.BillingState
-
Account.BillingPostalCode
-
Account.BillingCountry
-
IsPrimaryRelationship__c
-
OperatingHoursId__c
-
-
De resulterende data i form af en kontaktobjektforekomst deserialiseres og parses til Tilknyt <streng, objekt> og returneres som en del af en output JSON i
result.
Input JSON
JSON-input er formateret sådan:
{
"Id": <Contact Id>,
"fieldSetName": <Contact object fieldset>
}Eksempel på JSON-input med data:
{
"Id": "0035w0000396WMzAAM",
"fieldSetName": "ProviderFieldSet"
}Output JSON
JSON-output er formateret sådan:
{
"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"
}Eksempel på JSON-output med data.
{
"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"
}
