Skip to content
  • Surfmyindia |
  • Lifedreamguide |
  • w3webmart |
  • Overstockphoto |
  • News24globalworld |
  • News24classictimes |
  • Incriediableindia |
  • TechW3web |
  • W3Force ..
w3web.net
the vijay kumar Sign Up to Get Free Code Access β†’ |
  • Home
  • Tutorial
    • Lightning Component
    • Salesforce LWC
    • Salesforce Integration
    • Visualforce
    • Trigger
    • JQuery
  • Our Courses
  • Integration
  • Aura Comp
  • Salesforce LWC
  • Visualforce
  • Trigger
  • JQuery
  • React Js
  • More
    • About Us
    • Contact Us
    • Sitemap
    • Course Pricing
    • Blog
    • Gallery
    • Most Popular Articles
    • Download E-Book
    • YouTube Channel


extract Domain Name -- w3web.net

How to create a custom Formula Field to extract Domain Name from Email Address in Salesforce

January 31, 2025 by Vijay Kumar
304 views

Hey guys, today in this post we are going to learn How to create a custom Formula Field to extract Domain Name from Email Address in Salesforce.

  • Don’t forget to check out:- Validation Rule on Lead to check Phone Field Mandatory if Lead Source is Other in Salesforce. Click Here For More Information.

Final Output β†’

 

Other related post that would you like to learn in Salesforce

πŸ‘‰ Download Free Ebook β†’
πŸ‘‰ Get Free Course β†’

Challenges in your career

🎯 If You Are Facing Any Of These 6 Challenges in your career.

  • Learn Salesforce Development
  • Career Confusion
  • No Interview Call
  • Low Salary
  • No Promotion/Growth
  • No Finding New Job Opportunity
  • Why you stucking from past so many years in same company?

 
  • Editing row, Saving row and Removing rows Dynamically in Lightning component Salesforce
  • How to Insert New Record with Radio Button, Checkbox, Datepicker, Picklist, Long Text Area Using Lightning Component and Apex Controller
  • Using batch class to update record’s field and send email notification in finish method on custom Object in Salesforce
  • Get Picklist Values Dynamically and display Picklist values & Radio Buttons value in Lightning Component Salesforce
  • How to fetch picklist values from apex controller in lightning component
  • Create visualforce page to retrieve data from multiple custom objects using custom controller wrapper class and display data in a table of VF page in Salesforce
  • Create a Custom Lightning Component for Show Approve/Reject Status of Selected Records through Modal Popup in Salesforce Lightning Component
  • File upload to Salesforce object using custom REST API
  • how to return data from multiple custom metadata API through aura:handler change method in lightning component Salesforce
  • Create custom path dynamically for a picklist field of Stage in Opportunity Object using lightning:picklistPath in Lightning Component Salesforce
  • How to display radio buttons horizontally and create tab from selected radio button value in Lightning Aura Components Salesforce
  • how to get value, view edit list, or back navigation button of custom settings Salesforce

 

  • Find the below steps β–Ύ

Website Field is Mandatory Validation

Step 1:- Create a Formula Field in Account.

Follow the below steps to create Formula Field on Account

Setup >> Object Manager >> Account >> Fields & Relationships

  1.    SUBSTITUTE( Email__c, LEFT( Email__c , FIND("@", Email__c ) ), NULL )

extract Domain Name -- w3web.net

 

FAQ (Frequently Asked Questions)

Can a formula field reference itself in Salesforce?

Yes, formula fields can reference other formula fields in Salesforce. However, it is important to ensure that there are no circular references (i.e., a formula field referencing itself, directly or indirectly) as it would result in an error.

How do I create a formula field from another object in Salesforce?

Access the Object Manager from Setup, then navigate to the object you wish to create the Formula Field on. Alternatively, you can always opt for the Edit Object option from the Setup wheel if you already are on one of those Object's records.

How many formula fields can be created in Salesforce?

Salesforce allows up to 1,000 custom fields per object, but this total includes all field types, including formula fields. There is no specific cap exclusively for formula fields; however, formula fields are subject to execution and performance limits, which effectively restrict how many you can use in practice.

Related Topics | You May Also Like

  • How to find Quote Owner’s Manager’s Name and Signature using soql query in Visualforce Salesforce | How to get the Quote owner’s manager’s Name to display “apex:outputField” in Visualforce SalesforceHow to find Quote Owner’s Manager’s Name and Signature using soql query in Visualforce Salesforce | How to get the Quote owner’s manager’s Name to display “apex:outputField” in Visualforce Salesforce
  • How to Create Account With Contact In LWC – Lightning Web Component | How to create account related contacts in Lightning web component – LWCHow to Create Account With Contact In LWC – Lightning Web Component | How to create account related contacts in Lightning web component – LWC
  • How to get Current Position Latitude and Longitude of Google Map in LWC | How to retrieve current geolocation (navigator.geolocation) fields of google map and display on custom Lightning Page in LWCHow to get Current Position Latitude and Longitude of Google Map in LWC | How to retrieve current geolocation (navigator.geolocation) fields of google map and display on custom Lightning Page in LWC
  • How to include header and footer in all pages uses of JavaScript function in HTML file | How to include header and footer in html file without php | How to load header and footer using Javascript and HTMLHow to include header and footer in all pages uses of JavaScript function in HTML file | How to include header and footer in html file without php | How to load header and footer using Javascript and HTML
  • Write a Batch Apex to Update all the Industry and Type Field of  Account and re-call batch class from batch Using Database.executeBatch in finish method | create a batch to update account field in SalesforceWrite a Batch Apex to Update all the Industry and Type Field of Account and re-call batch class from batch Using Database.executeBatch in finish method | create a batch to update account field in Salesforce
  • Using batch class to update record’s field and send email notification in finish method on custom Object in Salesforce | batch class to update records on custom object in salesforceUsing batch class to update record’s field and send email notification in finish method on custom Object in Salesforce | batch class to update records on custom object in salesforce
  • Do not allow create duplicate record of Contact if associated Account has same Phone number in Salesforce || If Contact is created or updated then we will check associated Account’s Phone, if associated Account has same phone, then we do not allow to create or update contact record, here we will display error message in SalesforceDo not allow create duplicate record of Contact if associated Account has same Phone number in Salesforce || If Contact is created or updated then we will check associated Account’s Phone, if associated Account has same phone, then we do not allow to create or update contact record, here we will display error message in Salesforce
  • Apex Trigger to update Account phone from Contact Phone based on lookup relationship in Salesforce | Update the related Account Phone if Contact Record is Created in SalesforceApex Trigger to update Account phone from Contact Phone based on lookup relationship in Salesforce | Update the related Account Phone if Contact Record is Created in Salesforce
 
  

Our Free Courses β†’

πŸ‘‰ Get Free Course β†’

πŸ“Œ Salesforce Administrators

πŸ“Œ Salesforce Lightning Flow Builder

πŸ“Œ Salesforce Record Trigger Flow Builder

πŸ‘‰ Get Free Course β†’

πŸ“Œ Aura Lightning Framework

πŸ“Œ Lightning Web Component (LWC)

πŸ“Œ Rest APIs Integration



Vijay Kumar

Hi, This is Vijay Kumar behind the admin and founder of w3web.net. I am a senior software developer and working in MNC company from more than 8 years. I am great fan of technology, configuration, customization & development. Apart of this, I love to write about Blogging in spare time, Working on Mobile & Web application development, Salesforce lightning, Salesforce LWC and Salesforce Integration development in full time. [Read full bio] | | The Sitemap where you can find all published post on w3web.net

Categories Formula Field, Tutorial Tags build salesforce formulas, build salesforce pages, email template in salesforce lightning, html email template in salesforce, intro to salesforce, salesforce crm, salesforce email templates, salesforce essentials, salesforce formula for email formatting, salesforce process builder, salesforce reports, salesforce training videos for beginners, salesforce tutorials
How to Navigate Visualforce Page in Lightning Web Component | How to use Navigation Service (NavigationMixin.Navigate) to Visualforce Page in LWC
How to use custom event & dispatch event in LWC | How to dispatch event from child to parent in LWC – Lightning Web Component?

Archives β†’

Categories β†’

  • Blog (4)
  • More (7)
  • Tutorial (259)
    • Formula Field (1)
    • JQuery (12)
    • Lightning Component (60)
    • React Js (2)
    • Salesforce Integration (8)
    • Salesforce LWC (108)
    • Trigger (43)
    • Validation Rule (9)
    • Visualforce (16)

Global Visitors β†’

Popular Posts β†’

  • display lightning output fields label/value as a read-only in Salesforce LWC How to use output-field label/value represents as a read-only help-text Using of lightning:outputField element in Salesforce LWC | how do you display lightning output fields label/value as a read-only in Salesforce lightning web component — LWC 4 views per day
  • save Pdf as a attachement in salesforce -- w3web.net Save the Attachment as PDF using Apex Class and Visualforce Page on click button in Salesforce | How to save instantly my pdf visualforcepage as a file/attachment on click button in Salesforce | Rendering a VF page as PDF and saving it as an attachem... 3.67 views per day
  • lwc custom component to upload multiple file -- w3web.net How to creates a custom file uploader component that allows multiple files of JPG, PNG, PDF to be upload in object Uses of ‘lightning-file-upload’ elements in Salesforce Lightning Web Component — LWC | How to upload multiple files i... 3.33 views per day
  • create button menu with custom dropdown in lwc -- w3web.net Create Button Menu with Custom dropdown with a list of actions/functions and display selected value when you click on list option uses of ‘lightning-button-menu’ tag element in Salesforce lightning web component – LWC | Set the valu... 3.33 views per day
  • disabled input field values in lwc -- w3web.net How to disabled all of input field values dynamically based on button click Uses of foreach loop in javascript in Lightning Web component Salesforce – LWC | How to make lightning-input fields values disabled based on click a button Using dynami... 3.33 views per day
  • create lightning datatable row actions in lwc -- w3web.net Creating a Lightning Datatable with Row Actions and Display a Modal Popup on Click View Icon Button in Salesforce Lightning Web Component – LWC | how to create lightning datatable row actions in lwc 3.33 views per day
  • upload delete and preview files attachments lightning component -- w3web.net How to get upload/delete and preview the files attachments through apex class uses of lightning:fileCard and lightning:fileUpload elements in Salesforce Lightning component | file Uploader With Preview & Delete in aura component Salesforce 3.17 views per day
  • trigger to create account Automatically whenever contact is is created -- w3web.net Apex Trigger on Contact to Create Account Automatically and map to related account Id to Contact Whenever New Contact is Created in Salesforce | trigger to create account automatically whenever contact is created in salesforce 3.17 views per day
right side banner -- www.surfmyindia.com
right side banner -- overstockphoto.blogspot.com

Join Our Newsletter β†’

Loading
right side banner -- www.lifedreamguide.com

Recent Posts β†’

  • How JSX Works in ReactJS (With Live Example)
  • Introduction to ReactJS – Create Your First React App
  • How to use custom event & dispatch event in LWC | How to dispatch event from child to parent in LWC – Lightning Web Component?
right side banner -- www.w3webmart.com


header banner -- www.overstockphoto.blogspot.com
  • Follow Me β†’
➑ : Facebook
➑ : Twitter
➑ : Linkedin
➑ : Instagram
➑ : Reddit
➑ : Forcetalks
➑ : Pinterest
➑ : Github
➑ : Medium
➑ : Tumblr
➑ : Telegram
 
header banner -- www.overstockphoto.blogspot.com

Recent Posts β†’

  • How JSX Works in ReactJS (With Live Example)
  • Introduction to ReactJS – Create Your First React App
  • How to use custom event & dispatch event in LWC | How to dispatch event from child to parent in LWC – Lightning Web Component?
header banner -- www.lifedreamguide.com

Popular Posts β†’

  • lwc custom component to upload multiple file -- w3web.net How to creates a custom file uploader component that allows multiple files of JPG, PNG, PDF to be upload in object Uses of ‘lightning-file-upload’ elements in Salesforce Lightning Web Component — LWC | How to upload multiple files in lwc 5 views
  • create lightning pill with remove in lwc -- w3web.net How to create lightning-pill button with remove dynamically functionality in LWC Salesforce | create lightning-pill/lightning-pill-container with remove button action in lightning web component Salesforce — lwc 4 views
  • convert datetime to date in lwc -- w3web.net How to convert date format Using @track with html tag in lwc | How to format today Date in DD/MM/YYYY in lightning web components | Convert String To Current Date In Salesforce LWC 4 views
  • How display the current user details in lightning component lwc -- w3web.net LWC to Get Logged in User Id, Name, Email, IsActive, Alias details without apex class Uses of ‘uiRecordApi’ property and display the current User detail on lightning component in Salesforce Lightning Web Component (LWC) | How to get current user detail in lwc 4 views
  • reset lightning input field on button click in lwc -- w3web.net How to reset lightning input field values on button click dynamic JavaScript method function Uses of “lightning-record-edit-form” & “lightning-input-field” in Lightning Web Component — LWC | How to clear lightning-input on click in lwc 3 views
  • breadcrumb navigation hierarchy path in lwc -- w3web.net how to building dynamic breadcrumbs an example of navigation hierarchy path of the page in lightning Salesforce uses of ‘lightning-breadcrumbs’ tag elements in Lightning Web Component (LWC) | Create a breadcrumbs path of the page to navigate dynamic progress menu bar hierarchy in LWC (Lightning Web Component) Salesforce 3 views
  • extract Domain Name -- w3web.net How to create a custom Formula Field to extract Domain Name from Email Address in Salesforce 3 views
  • Surfmyindia |
  • Lifedreamguide |
  • w3webmart |
  • Overstockphoto |
  • News24classictimes |
  • TechW3web |
  • Refund Policy |
  • Delivery Policy |
  • Privacy Policy |
  • Term & Conditions
© 2025 w3web.net • Built with GeneratePress

Chat Now