Google address search
Komodo Care Connect supports integration with Google's Places API to offer users search and autocomplete functionalities via the mvn:pjnContactInformationEdit
Lightning Web Component. These functionalities are evident when users create and edit Contact Information records of the PJN_Address
record type, such as in Account Search, the Contact Information component, or when called by a custom quick action.
Note
Komodo Care Connect currently only supports addresses located in the United States.
To enable the Places API and subsequently render the Google Address Search box for search and autocomplete functionalities, you will need to complete the following steps:
Obtain and set API key
To obtain a Google Places API key, reference Google's Places API documentation.
Note
Google allows Autocomplete API calls and Places API calls to be grouped together into a single session token to consolidate billing. The Contact Information component has been implemented in such a way to reduce the total number of API calls and keep the integration effectively free of cost. Specifically, a single token is generated when the component loads and then sent with both Autocomplete API requests and Places API requests when a user selects an address.
To add the API key to Komodo Care Connect:
In the Quick Find box in Setup, search for and select Custom Settings.
Click the Google Maps API Key (
mvn__PJN_Google_Maps_API_Key__c
) custom setting.Click Manage.
Click New.
Enter the API key you have obtained.
Click Save.
The Google Address Search box will now render automatically when users click New or Edit in the Contact Information component.
Create and add quick action
To call and display the mvn:pjnContactInformationEdit
component so that users can use the search and autocomplete functionalities in Address record pages, create and add a new custom quick action to the Address page layout. Users will then be able to click a button to view and use the component.
To create a custom quick action in the Contact Information (
mvn__PJN_Contact_Information__c
) object to call themvn:pjnContactInformationEdit
component, reference Salesforce's documentation on Creating a Lightning Web Component Action. Komodo Health recommends setting the Label toEdit
to minimize the disruption to the user experience.To add the custom quick action in the Contact Information object to the
Contact Address Information Layout
or related address page layouts, reference Salesforce's documentation on Building Page Layouts for Custom Objects.