Loading
Prepare for Email to Become the Default Login ExperienceRead More
Insurance
InsProviderNetworkService:getProviders

InsProviderNetworkService:getProviders

Use this service to get a list of Providers and Provider Networks, based on the contact name, postal code, or profile attributes.

Results are sorted only if the two new remote options, contactLongitudeSort , and contactLatitudeSort, are not empty and have valid values.

Results are sorted nearest to farthest, based on the contact's mailing address relative to the given coordinates (i.e., contactLongitudeSort and contactLatitudeSort).

Providers found from contacts without a mailing address are placed last in the sort.

Class: InsProviderNetworkService

Method: getProviders

How It Works

  1. The service searches Providers (Contacts) using the contactFilter (first name, last name, mailing postal code).

  2. Uses returned contacts as the objectId (where objectId__c = contactId) to search the attributeAssignment table.

  3. Applies the attributeFilter (if used).

  4. Uses the contactIds to get ProviderNetworks from ProviderNetworkMembers.

Remote Options

Option

Description

contactFilter

Required.

Contact fields: FirstName, LastName, MailingPostalCode.

attributeFilter

Optional.

Profile attributes: categoryname and attributename.

contactLongitudeSort

Optional.

Longitude value of contact address as per MailingLongitude.

contactLatitudeSort

Optional.

Latitude value of contact address as per MailingLatitude.

 
Loading
Salesforce Help | Article