You can enable or disable county automation for specific objects (Account, Contact, and Lead) using the custom setting “Activate County Population”, which is part of the package. This custom setting includes three flags—“Populate Account”, “Populate Contact”, and “Populate Lead”—which allow you to control county population automation based on your preferences for each object. In this guide, we’ll show you how to use these flags to configure and manage county automation per object.
Before you start configuring the flags, ensure the “Activate County Population” custom setting is available in your Salesforce instance.
Navigate to Custom Settings:
Find the “Activate County Population” Setting:
Manage the Custom Setting:
The “Activate County Population” custom setting contains three key flags that control the automation for different objects:
To enable or disable county population for each object, follow these steps:
Edit the Custom Setting Record:
Adjust the Flags:
Example settings:
Save the Record:
Now that the flags are configured, you will notice a change when you visit the records of the affected objects.
If the Flag is Enabled: If the checkbox for Populate Account, Populate Contact, or Populate Lead is checked, county automation will automatically populate the county field for those records based on the state and ZIP code.
If the Flag is Disabled: If the checkbox for any of these flags is unchecked, county automation will not run for that object. For example:
This allows you to control county automation on a per-object basis without needing to remove the functionality entirely. The automation logic will simply be bypassed for objects where the flag is disabled.