Home/Learn/Salesforce custom settings
Data Model

Create Salesforce Custom Settings with AI

Custom Settings are the cleanest way to manage org config and feature flags without hardcoding. SF Agent creates the settings object with typed fields so your Apex and formulas can reference them immediately.

Manual
10-20 min
With SF Agent
~2 min

The Manual Way

  1. 1Navigate to Setup → Custom Settings → New
  2. 2Choose hierarchy or list type
  3. 3Set label, API name, and visibility
  4. 4Add custom fields for each config parameter
  5. 5Set default values at org, profile, or user level
  6. 6Reference in Apex or formulas using $Setup or custom methods

With SF Agent

  1. 1Describe the settings object and its config fields
  2. 2SF Agent generates the custom setting with all fields
  3. 3Hierarchy or list type chosen based on use case
  4. 4Deployed and ready for data population

Example

You type:

Create a hierarchy custom setting called 'Feature Flags' with checkbox fields: Enable_Auto_Close, Enable_Email_Alerts, Enable_Duplicate_Check. Default all to false.

SF Agent generates:
  • Custom Setting: Feature_Flags__c (Hierarchy)
  • Fields: Enable_Auto_Close__c, Enable_Email_Alerts__c, Enable_Duplicate_Check__c
  • All fields: Checkbox, default false
  • Visibility: Public

Stop clicking through Setup

Describe your salesforce custom settings in plain English. SF Agent handles the rest.

Start Free Trial — 30 Days, 15 Prompts

No credit card required for SF Agent. Bring your own API key.

Share this guide:
Create Salesforce Custom Settings with AI | SF Agent