AddressTools’ triggers handle the standardization, validation, and some elements of verification in a Salesforce organization where the solution is configured.
However, in later versions of the package, changes in how permissions are checked may result in them throwing the following error message:
pw_ccpro.ValidateAccountBeforeSave: execution of BeforeUpdate caused by: System.QueryException: Insufficient permissions: secure query included inaccessible field (pw_ccpro)
To resolve this issue, ensure that users have the appropriate object and field permissions assigned. The required permissions are detailed in the table below and are also included in the packaged “AddressTools Premium Standard User” permission set.
| Object | Object Permission | Field Name | Field Permission |
|---|---|---|---|
| Users | N/A |
QuickComplete Country Exempt Validation Errors | Read |
| Countries | View All | All fields | Read |
| States | View All | All fields | Read |
| ZIP Codes | View All | All fields | Read |
| Time Zones | View All | All fields | Read |
| Alternate Country Names | View All | All fields | Read |
| Alternate State Names | View All | All fields | Read |
| ZIP Code Counties | View All | All Fields | Read |
The user/profile will need access to the following Custom Setting Definitions:
- CountryComplete Settings
- AddressTools Fields to Validate