{"id":987,"date":"2010-09-09T08:52:19","date_gmt":"2010-09-09T03:22:19","guid":{"rendered":"http:\/\/JitendraZaa.com\/blog\/?p=987"},"modified":"2010-09-09T08:52:19","modified_gmt":"2010-09-09T03:22:19","slug":"explain-the-mvc-design-pattern-of-salesforce-com-interview-question","status":"publish","type":"post","link":"https:\/\/www.jitendrazaa.com\/blog\/salesforce\/explain-the-mvc-design-pattern-of-salesforce-com-interview-question\/","title":{"rendered":"Explain the MVC design pattern of Salesforce.com &#8211; Interview Question"},"content":{"rendered":"<p>Model view controller (MVC) design pattern is the one of the most popular design pattern in 3 tier applications. Salesforce.com is award winning tool to manage all the data of sales team of an organization. The flexibility and assurance of safe data provided by Salesforce.com results into nonparallel development capabilities to the developer.  One normal questions <strong>asked in salesforce <\/strong>is explaining the MVC behavior of the application.<\/p>\n<p><a href=\"https:\/\/i0.wp.com\/jitendrazaa.com\/blog\/wp-content\/uploads\/2010\/09\/Salesforce-MVC.jpg?ssl=1\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-medium wp-image-988\" title=\"Salesforce Model view controller (MVC)\" src=\"https:\/\/i0.wp.com\/jitendrazaa.com\/blog\/wp-content\/uploads\/2010\/09\/Salesforce-MVC-300x118.jpg?resize=300%2C118&#038;ssl=1\" alt=\"Salesforce Model view controller (MVC)\" width=\"300\" height=\"118\" \/><\/a><!--more--><\/p>\n<p>So lets discuss that how Salesforce.com uses MVC pattern.<\/p>\n<p>MVC pattern contains below three modules:<\/p>\n<ol>\n<li>Model<\/li>\n<li>View<\/li>\n<li>Controller<\/li>\n<\/ol>\n<p><strong>Model : <\/strong>What schema and data does salesforce uses to represent the system\u00a0completely. \u00a0In salesforce, we can say that <strong>sObjects <\/strong>are the model as every entity in salesforce is mapped to some sObject.<\/p>\n<p><strong>View : <\/strong>How the schema and data is represented. <strong>Visualforce <\/strong>is used to present the data to users.<\/p>\n<p><strong>Controller : <\/strong>How the interface actions. <strong>Controllers <\/strong>are used to perform the actions whenever users interact with visual force.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Salesforce Interview question, How salesforce.com follows the (Model View Controller) MVC design pattern.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"advanced_seo_description":"","jetpack_seo_html_title":"","jetpack_seo_noindex":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"jz_research_post":"","_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_post_was_ever_published":false},"categories":[9],"tags":[331],"class_list":["post-987","post","type-post","status-publish","format-standard","hentry","category-salesforce","tag-salesforce"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack-related-posts":[{"id":28,"url":"https:\/\/www.jitendrazaa.com\/blog\/salesforce\/salesforce-interview-questions\/","url_meta":{"origin":987,"position":0},"title":"Salesforce Interview Questions &#8211; Part 1","author":"Jitendra","date":"May 6, 2010","format":false,"excerpt":"Set of most often asked questions on the salesforce.com developement","rel":"","context":"In &quot;Salesforce&quot;","block_context":{"text":"Salesforce","link":"https:\/\/www.jitendrazaa.com\/blog\/category\/salesforce\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":992,"url":"https:\/\/www.jitendrazaa.com\/blog\/salesforce\/life-cycle-of-visual-force-page-during-get-request-salesforce-interview-question\/","url_meta":{"origin":987,"position":1},"title":"Life Cycle of Visualforce page during GET Request- Salesforce Interview question","author":"Jitendra","date":"September 9, 2010","format":false,"excerpt":"Explain the life cycle of visual force page of the Salesforce.com in GET request mode","rel":"","context":"In &quot;Salesforce&quot;","block_context":{"text":"Salesforce","link":"https:\/\/www.jitendrazaa.com\/blog\/category\/salesforce\/"},"img":{"alt_text":"Visual force Life cycle Salesforce","src":"https:\/\/i0.wp.com\/jitendrazaa.com\/blog\/wp-content\/uploads\/2010\/09\/Visual-force-Life-cycle-235x300.jpg?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":4820,"url":"https:\/\/www.jitendrazaa.com\/blog\/salesforce\/login-to-lightning-enabled-salesforce-instance-using-sessionid\/","url_meta":{"origin":987,"position":2},"title":"Login to Lightning enabled Salesforce instance using SessionId","author":"Jitendra","date":"September 21, 2015","format":false,"excerpt":"If you have session Id, then you could login to Salesforce directly using below URL hack : https:\/\/[intance].salesforce.com\/secur\/frontdoor.jsp?sid=[sessionId] on above URL, you have to replace [instance] by actual salesforce instance name and [sessionId] by actual sessionId of user. In same way, we can directly login to portals or communities using\u2026","rel":"","context":"In &quot;Salesforce&quot;","block_context":{"text":"Salesforce","link":"https:\/\/www.jitendrazaa.com\/blog\/category\/salesforce\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":353,"url":"https:\/\/www.jitendrazaa.com\/blog\/salesforce\/difference-between-sandbox-and-developer-edition-in-salesforce\/","url_meta":{"origin":987,"position":3},"title":"Difference between Sandbox and developer edition in Salesforce","author":"Jitendra","date":"June 27, 2010","format":false,"excerpt":"Explains the basic difference in Sandbox and developer edition of Salesforce","rel":"","context":"In &quot;Salesforce&quot;","block_context":{"text":"Salesforce","link":"https:\/\/www.jitendrazaa.com\/blog\/category\/salesforce\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":2762,"url":"https:\/\/www.jitendrazaa.com\/blog\/salesforce\/salesforce-interview-questions-part-6\/","url_meta":{"origin":987,"position":4},"title":"Salesforce Interview Questions &#8211; Part 6","author":"Jitendra","date":"March 10, 2012","format":false,"excerpt":"Basic concepts and Interview Questions of salesforce, Visualforce, Apex and SOQL","rel":"","context":"In &quot;Apex&quot;","block_context":{"text":"Apex","link":"https:\/\/www.jitendrazaa.com\/blog\/category\/salesforce\/apex\/"},"img":{"alt_text":"Salesforce - External Id option while creating field","src":"https:\/\/i0.wp.com\/jitendrazaa.com\/blog\/wp-content\/uploads\/2012\/03\/Salesforce-External-Id-option-while-creating-field.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/jitendrazaa.com\/blog\/wp-content\/uploads\/2012\/03\/Salesforce-External-Id-option-while-creating-field.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/jitendrazaa.com\/blog\/wp-content\/uploads\/2012\/03\/Salesforce-External-Id-option-while-creating-field.png?resize=525%2C300&ssl=1 1.5x"},"classes":[]},{"id":1038,"url":"https:\/\/www.jitendrazaa.com\/blog\/salesforce\/salesforce-interview-questions-part-2\/","url_meta":{"origin":987,"position":5},"title":"Salesforce Interview Questions \u2013 Part 2","author":"Jitendra","date":"September 11, 2010","format":false,"excerpt":"Interview questions of salesforce.com, interview questions of visualforce.com and APEX","rel":"","context":"In &quot;Salesforce&quot;","block_context":{"text":"Salesforce","link":"https:\/\/www.jitendrazaa.com\/blog\/category\/salesforce\/"},"img":{"alt_text":"Account Child relationship in salesforce","src":"https:\/\/i0.wp.com\/jitendrazaa.com\/blog\/wp-content\/uploads\/2010\/09\/Account-Child-relationship-in-salesforce.jpg?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]}],"jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/www.jitendrazaa.com\/blog\/wp-json\/wp\/v2\/posts\/987","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.jitendrazaa.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.jitendrazaa.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.jitendrazaa.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.jitendrazaa.com\/blog\/wp-json\/wp\/v2\/comments?post=987"}],"version-history":[{"count":0,"href":"https:\/\/www.jitendrazaa.com\/blog\/wp-json\/wp\/v2\/posts\/987\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.jitendrazaa.com\/blog\/wp-json\/wp\/v2\/media?parent=987"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.jitendrazaa.com\/blog\/wp-json\/wp\/v2\/categories?post=987"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.jitendrazaa.com\/blog\/wp-json\/wp\/v2\/tags?post=987"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}