Loading
Prepare for Email to Become the Default Login ExperienceRead More
The online Trailblazer Community becomes read-only Oct 30, 2026Read More
Important Advisory: iOS Update Impacting CG Mobile ApplicationRead More
Insurance
InsProviderNetworkService:getProvidersByNameOrNPI

InsProviderNetworkService:getProvidersByNameOrNPI

Use this service to allow users to search for Providers using a search key.

Class:InsProviderNetworkService

Method:getProvidersByNameOrNPI

How It Works

  1. The service retrieves Provider records where the Firstname, Lastname, or NPI (ProviderIdentifier__c) starts with the searchKey.

  2. The resulting list is returned as part of the output JSON in the result node.

User Inputs

Input

Description

searchKey

String

Used to check against FirstName, LastName, or Provider NPI.

Input JSON

JSON input is formatted like this:

{
  "searchKey": <search string>
}

Sample JSON input with data:

{
  "searchKey": "John"
}

Output JSON

JSON output is formatted like this:

{
  "searchKey": <search string>,
  "result": [
    {
      "Name": <Contact.name field value>,
      "FirstName": <Contact.FirstName field value>,
      "LastName": <Contact.LastName field value>,
      "ProviderIdentifier__c": <Contact.ProviderIdentifier__c field value>,
      "Id": <Contact record ID>,
      "RecordTypeId": <Contact Record Type>
    }
  ],
  "error": "OK"
}

Sample JSON output with data, with searchKey Joh. Notice how John and Johann are returned in the result.

{
  "searchKey": "Joh",
  "result": [
    {
      "Name": "John Smith",
      "FirstName": "John",
      "LastName": "Smith",
      "ProviderIdentifier__c": "DE0049",
      "Id": "0035w0000396WMzAAM",
      "RecordTypeId": "0125w000001FVCuAAO"
    },
    {
      "Name": "Leslie Johann",
      "FirstName": "Leslie",
      "LastName": "Johann",
      "Id": "0035w00003976D2AAI",
      "RecordTypeId": "0125w000001FVCuAAO"
    },
  ],
  "error": "OK"
}
 
Loading
Salesforce Help | Article