Dynamic Control of Automations on Salesforce
This is chapter three of this saga, and we will show you how to use Custom Settings for Dynamic Control of Automations on Salesforce.
Custom Settings
Custom settings are like custom objects and enable application developers to create custom sets of data, as well as create and associate custom data for an organization, profile, or specific user. All custom settings data is exposed in the application cache, which enables efficient access without the cost of repeated queries to the database. This data is then available for formula fields, validation rules, flows, Apex, and the SOAP API.
Scale with senior nearshore experts in your time zone.
We will create a list “Custom Setting” for triggers and Hyperarchy for Validation Rules (Figure 1).

For Apex Triggers
I will suppose the needed control apex, validation rules automation independent each from another, so for that the first step will be create 2 different “Custom Settings”.





For Validation Rules
Go to “Setup” -> “Custom Setting” and create “Validation Handler” setting.


Setting details


Note: You could check all the metadata and code I used for this example on this repository on github: cristiaan30033/Salesforce-Dynamic-Control-of-Automations: Examples how to implements controls for triggers, validations rules, etc. on salesforce platform (github.com)
Why you should augment your team with Folder IT
Outsourcing or Augmenting your AI Team with Folder IT professionals is a cost effective solution that does not sacrifice on quality nor communication effectiveness. Our teams are qualified for working with all the latest technologies and for joining you right away.
Request a quote now for outsourcing your project or staff augmentation services to Argentina.
- June 12, 2024