Loading
Insurance
Table of Contents
Select Filters

          No results
          No results
          Here are some search tips

          Check the spelling of your keywords.
          Use more general search terms.
          Select fewer filters to broaden your search.

          Search all of Salesforce Help
          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