Activity Forums Salesforce® Discussions What is the difference between a standard and custom apex controller?

  • What is the difference between a standard and custom apex controller?

    Posted by Shweta on August 5, 2020 at 5:16 pm

    What is the difference between a standard and custom apex controller in Salesforce?

    Ratnesh replied 4 years, 3 months ago 3 Members · 2 Replies
  • 2 Replies
  • Aditya

    Member
    August 5, 2020 at 5:32 pm

    Search Results
    <div eid="_OwqX7XpEuab4-EPx6-AqAI" data-async-context="query:What%20is%20the%20difference%20between%20a%20standard%20and%20custom%20apex%20controller%3F" id="rso"><div lang="en-IN" data-hveid="CA8QAA" data-ved="2ahUKEwi11_P0y4TrAhXmzTgGHccXACUQjDYoAHoECA8QAA"><div><div><div>Featured snippet from the web
    <div data-md="61" lang="en-IN"><div aria-level="3" role="heading" data-attrid="wa:/description" data-hveid="CA8QAQ">A custom controller is the user defined an Apex class that implements all of the logic for a page without leveraging a standard controller. Whenever the visualforce pages need to run entirely in system mode and it does not enforce the permissions and field-level security of the current user the custom controller works.

    </div></div></div></div></div></div></div>

  • Ratnesh

    Member
    August 6, 2020 at 9:01 am

    Use custom controllers when you want your Visualforce page to run entirely in system mode, which does not enforce the permissions and field-level security of the current user. A controller extension is an Apex class that extends the functionality of a standard or custom controller.

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos