{"id":1038,"date":"2010-09-11T14:06:51","date_gmt":"2010-09-11T08:36:51","guid":{"rendered":"http:\/\/JitendraZaa.com\/blog\/?p=1038"},"modified":"2015-02-09T01:27:58","modified_gmt":"2015-02-09T01:27:58","slug":"salesforce-interview-questions-part-2","status":"publish","type":"post","link":"https:\/\/www.jitendrazaa.com\/blog\/salesforce\/salesforce-interview-questions-part-2\/","title":{"rendered":"Salesforce Interview Questions \u2013 Part 2"},"content":{"rendered":"<div class=\"intrinsic-container\"><iframe loading=\"lazy\" src=\"https:\/\/jitendrazaa.com\/blog\/SFDCInterviewList.php?num=2\" width=\"300\" height=\"150\" allowfullscreen=\"allowfullscreen\"> <\/iframe><\/div>\n<p><strong>10. Do governor limits apply to sandbox instances?<\/strong><\/p>\n<p><strong>Ans :<\/strong> Governor limits do apply to all Salesforce instances (trial, developer, production or sandbox environments). However code coverage and successful execution of test classes is only enforced when deploying to a production environment.<br \/>\n<!--more--><\/p>\n<hr \/>\n<p><strong>11. What is difference in ISNULL and ISBLANK?<\/strong><\/p>\n<p><strong>ISNULL: <\/strong><\/p>\n<ul>\n<li>Determines if an expression is null (blank) and returns TRUE if it is. If it contains a value, this function returns FALSE.<\/li>\n<li>Text fields are never null, so using this function with a text field always returns false. For example, the formula field IF(ISNULL(new__c) 1, 0) is always zero regardless of the value in the New field. For text fields, use the ISBLANK function instead.<\/li>\n<li>Multi-select picklist fields are never null in s-controls, buttons, and email templates, so using this function with a multi-select picklist field in those contexts always returns false.<\/li>\n<li>Empty date and date\/time fields always return true when referenced in ISNULL functions.<\/li>\n<li>Choose Treat blank fields as blanks for your formula when referencing a number, percent, or currency field in an ISNULL function. Choosing Treat blank fields as zeroes gives blank fields the value of zero so none of them will be null.<\/li>\n<li>Merge fields can be handled as blanks, which can affect the results of components like s-controls because they can call this function.<\/li>\n<li>When using a validation rule to ensure that a number field contains a specific value, use the ISNULL function to include fields that do not contain any value. For example, to validate that a custom field contains a value of &#8216;1,&#8217; use the following validation rule to display an error if the field is blank or any other number:\u00a0OR(ISNULL(field__c), field__c&lt;&gt;1)<\/li>\n<\/ul>\n<p><strong>ISBLANK:<\/strong><\/p>\n<ul>\n<li>Determines if an expression has a value and returns TRUE if it does not. If it contains a value, this function returns FALSE.<\/li>\n<li>Use <strong>ISBLANK <\/strong>instead of <strong>ISNULL <\/strong>in new formulas. ISBLANK has the same functionality as ISNULL, but also supports text fields. Salesforce.com will continue to support ISNULL, so you do not need to change any existing formulas.<\/li>\n<li>A field is not empty if it contains a character, blank space, or zero. For example, a field that contains a space inserted with the spacebar is not empty.<\/li>\n<li>Use the BLANKVALUE function to return a specified string if the field does not have a value; use the ISBLANK function if you only want to check if the field has a value.<\/li>\n<li>If you use this function with a numeric field, the function only returns TRUE if the field has no value and is not configured to treat blank fields as zeroes.<\/li>\n<\/ul>\n<p><a title=\"Opens in new window\" href=\"https:\/\/na2.salesforce.com\/help\/doc\/user_ed.jsp?loc=help&amp;section=help&amp;hash=ISNULL&amp;target=customize_functions.htm\" target=\"_blank\" rel=\"nofollow\">for further study you can read this link.<\/a><\/p>\n<hr \/>\n<p><strong>12. Is it possible to write the Apex code from user Interface?<\/strong><\/p>\n<p>You can add, edit, or delete\u00a0Apex\u00a0using the\u00a0Salesforce.com\u00a0user interface only in a Developer Edition organization, a\u00a0Salesforce.com\u00a0Enterprise Edition trial organization, or\u00a0<a href=\"https:\/\/na2.salesforce.com\/help\/doc\/en\/create_test_instance.htm\" rel=\"nofollow\">sandbox<\/a>organization. In a\u00a0Salesforce.com\u00a0production organization, you can only make changes to\u00a0Apex\u00a0by using the\u00a0Metadata API ,<\/p>\n<p><samp>deploy<\/samp>call, the\u00a0Force.com IDE, or theForce.com Migration Tool. The\u00a0Force.com IDE\u00a0and\u00a0Force.com Migration Tool\u00a0are free resources provided by\u00a0salesforce.com\u00a0to support its users and partners, but are not considered part of our Services for purposes of the\u00a0salesforce.com\u00a0Master Subscription Agreement.<\/p>\n<hr \/>\n<p><strong>13. When you can&#8217;t add Time dependent action in Workflow rule?<\/strong><br \/>\nYou can&#8217;t add time-dependent actions to a rule if you choose Every time a record is created or edited.<\/p>\n<p><a title=\"Salesforce tutorial, workflow rules\" href=\"https:\/\/jitendrazaa.com\/blog\/webtech\/salesforce\/step-by-step-salesforce-tutorial-%E2%80%93-creating-workflow-rule-%E2%80%93-5-of-n\/\" target=\"_blank\">For more study, check this article<\/a><\/p>\n<hr \/>\n<p><strong>14. What are the types of email templates available in salesforce.com?<\/strong><\/p>\n<ol>\n<li>Text<\/li>\n<li>HTML with Letter Head<\/li>\n<li>Custom HTML<\/li>\n<li>Visual force<\/li>\n<\/ol>\n<p><a title=\"Salesforce Email template article\" href=\"https:\/\/jitendrazaa.com\/blog\/webtech\/salesforce\/step-by-step-salesforce-tutorial-%E2%80%93-creating-email-template-%E2%80%93-4-of-n\/\" target=\"_blank\">To study more on email templates, refer this article<\/a><\/p>\n<hr \/>\n<p><strong>15. What are the different Salesforce.com Editions and Limits?<\/strong><\/p>\n<p>Ans : <a title=\"Salesforce.com editions and limit\" href=\"https:\/\/na2.salesforce.com\/help\/doc\/en\/limits.htm\" target=\"_blank\" rel=\"nofollow\">check this URL<\/a><\/p>\n<hr \/>\n<p><strong>16. What is Roll up summary field in Salesforce?<\/strong><\/p>\n<p>Roll up summary field in salesforce calculates the <strong>Count, Sum, Min or Max <\/strong>of particular field of any child record. Thus, we can say that Roll up summary field can only be created on <strong>Master <\/strong>object.<a title=\"Roll up summary field in salesforce\" href=\"https:\/\/jitendrazaa.com\/blog\/webtech\/salesforce\/roll-up-summary-fields-in-salesforce\/\" target=\"_blank\" rel=\"nofollow\"> To read further, please check this URL<\/a><\/p>\n<hr \/>\n<p><strong>17. What will happen if the Account is deleted?<\/strong><\/p>\n<p>If the Account is deleted then Contact, Opportunity will also be deleted from Salesforce which are related to that Account.<\/p>\n<p>From the database perspective, check below image of child relationships of Account:<\/p>\n<figure id=\"attachment_1298\" aria-describedby=\"caption-attachment-1298\" style=\"width: 209px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/i0.wp.com\/jitendrazaa.com\/blog\/wp-content\/uploads\/2010\/09\/Account-Child-relationship-in-salesforce.jpg?ssl=1\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-1298\" title=\"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=209%2C508&#038;ssl=1\" alt=\"Account Child relationship in salesforce\" width=\"209\" height=\"508\" \/><\/a><figcaption id=\"caption-attachment-1298\" class=\"wp-caption-text\">Account Child relationship in salesforce<\/figcaption><\/figure>\n<p>If we use schema builder, released in Winter 12 it would look like:<\/p>\n<figure id=\"attachment_2483\" aria-describedby=\"caption-attachment-2483\" style=\"width: 474px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/i0.wp.com\/jitendrazaa.com\/blog\/wp-content\/uploads\/2010\/09\/Account-Contact-and-Opportunity-of-salesforce-in-schema-builder.png?ssl=1\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-2483  \" title=\"Account Contact and Opportunity of salesforce in schema builder\" src=\"https:\/\/i0.wp.com\/jitendrazaa.com\/blog\/wp-content\/uploads\/2010\/09\/Account-Contact-and-Opportunity-of-salesforce-in-schema-builder.png?resize=474%2C366&#038;ssl=1\" alt=\"Account Contact and Opportunity of salesforce in schema builder\" width=\"474\" height=\"366\" \/><\/a><figcaption id=\"caption-attachment-2483\" class=\"wp-caption-text\">Account Contact and Opportunity of salesforce in schema builder<\/figcaption><\/figure>\n<hr \/>\n<p><strong>18. How many types of the relationship fields available in Salesforce?<\/strong><\/p>\n<p>Ans :<\/p>\n<ol>\n<li>Master Detail<\/li>\n<li>Many to Many<\/li>\n<li>Lookup<\/li>\n<li>Hierarchical (It is available only on User Object, we cannot create this relationship)<\/li>\n<\/ol>\n<p><a title=\"Relationship fields in salesforce\" href=\"https:\/\/na2.salesforce.com\/help\/doc\/en\/overview_of_custom_object_relationships.htm\" target=\"_blank\" rel=\"nofollow\">For further study read this.<\/a><\/p>\n<hr \/>\n<p><strong>19. How to create many to many relationships between object?<\/strong><\/p>\n<p>Creating many to many relationship in salesforce is little tricky. You cannot create this type of relationship directly. Follow below steps to create this type of relationship.<\/p>\n<p>Create both objects which should be interlinked.<\/p>\n<p>Create one custom object (also called as <strong>junction object<\/strong>), which should have autonumber as unique identification and create <strong>two master relationships <\/strong>for both objects, no need create tab for this object.<\/p>\n<p>Now on both object, add this field as related list.<\/p>\n<p><a title=\"Create Many to many relationship in salesforce\" href=\"https:\/\/jitendrazaa.com\/blog\/webtech\/salesforce\/deep-drive-in-junction-object-create-many-to-many-relationship-in-salesforce\/\">Check this article on blog to create many to many relationship in detail.<\/a><\/p>\n<p><a title=\"Create many to many relationship field in saleforce\" href=\"https:\/\/na2.salesforce.com\/help\/doc\/en\/relationships_manytomany.htm#JOJunctionObject\" target=\"_blank\" rel=\"nofollow\">To study more in detail, please refer salesforce documents.<\/a><\/p>\n<hr \/>\n<div class=\"intrinsic-container\"><iframe loading=\"lazy\" src=\"https:\/\/jitendrazaa.com\/blog\/SFDCInterviewList.php?num=2\" width=\"300\" height=\"150\" allowfullscreen=\"allowfullscreen\"> <\/iframe><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Interview questions of salesforce.com, interview questions of visualforce.com and APEX<\/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_post_was_ever_published":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":""},"categories":[9,19],"tags":[331],"class_list":["post-1038","post","type-post","status-publish","format-standard","hentry","category-salesforce","category-webtech","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":1038,"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":3773,"url":"https:\/\/www.jitendrazaa.com\/blog\/salesforce\/salesforce-faq-part-19\/","url_meta":{"origin":1038,"position":1},"title":"Salesforce interview questions &#8211; Part 19","author":"Jitendra","date":"December 16, 2014","format":false,"excerpt":"Salesforce interview questions for developers and admins around Apex, Visualforce, getting Salesforce object name on basis of Id, Apex API limits","rel":"","context":"In &quot;Apex&quot;","block_context":{"text":"Apex","link":"https:\/\/www.jitendrazaa.com\/blog\/category\/salesforce\/apex\/"},"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":1038,"position":2},"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":3855,"url":"https:\/\/www.jitendrazaa.com\/blog\/salesforce\/large-data-volumes-ldv-in-salesforce\/","url_meta":{"origin":1038,"position":3},"title":"Large Data Volumes (LDV) in Salesforce | FAQs | Interview Questions","author":"Jitendra","date":"April 18, 2014","format":false,"excerpt":"You would like to go through this useful cheat sheet for \"Query and Search\" optimization, few of this is discussed in this post as FAQ. 171 : How Standard Fields and Custom Fields related information is saved inside Salesforce Database? Is every Standard and Custom Object is created as a\u2026","rel":"","context":"In &quot;Configuration&quot;","block_context":{"text":"Configuration","link":"https:\/\/www.jitendrazaa.com\/blog\/category\/salesforce\/configuration\/"},"img":{"alt_text":"Skinny Table","src":"https:\/\/i0.wp.com\/www.jitendrazaa.com\/blog\/wp-content\/uploads\/2014\/04\/Skinny-Table.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":3218,"url":"https:\/\/www.jitendrazaa.com\/blog\/salesforce\/salesforce-interview-question-part-15\/","url_meta":{"origin":1038,"position":4},"title":"Salesforce Interview Question \u2013 Part 15","author":"Jitendra","date":"May 24, 2013","format":false,"excerpt":"141 : User Wants to set the starting day in Calendar as \"Monday\" instead of \"Sunday\". How to get it done? Ans : Change the user locale to \"English ( United Kingdom ) \" in Personal information or User record. 142 : Why CSS is not working in PDF created\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":4174,"url":"https:\/\/www.jitendrazaa.com\/blog\/salesforce\/salesforce-interview-questions-part-22\/","url_meta":{"origin":1038,"position":5},"title":"Salesforce Interview Questions &#8211; Part 22","author":"Jitendra","date":"December 1, 2015","format":false,"excerpt":"Consider it Facts or FAQ or interview questions but its small and important notes about Salesforce. More than 200 interview questions for Salesforce developer, Admin and consultants","rel":"","context":"In &quot;Salesforce&quot;","block_context":{"text":"Salesforce","link":"https:\/\/www.jitendrazaa.com\/blog\/category\/salesforce\/"},"img":{"alt_text":"220+ Salesforce Interview Questions","src":"https:\/\/i0.wp.com\/www.jitendrazaa.com\/blog\/wp-content\/uploads\/2015\/11\/220plus-Interview-Questions-1024x303.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.jitendrazaa.com\/blog\/wp-content\/uploads\/2015\/11\/220plus-Interview-Questions-1024x303.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/www.jitendrazaa.com\/blog\/wp-content\/uploads\/2015\/11\/220plus-Interview-Questions-1024x303.png?resize=525%2C300&ssl=1 1.5x"},"classes":[]}],"jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/www.jitendrazaa.com\/blog\/wp-json\/wp\/v2\/posts\/1038","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=1038"}],"version-history":[{"count":4,"href":"https:\/\/www.jitendrazaa.com\/blog\/wp-json\/wp\/v2\/posts\/1038\/revisions"}],"predecessor-version":[{"id":4216,"href":"https:\/\/www.jitendrazaa.com\/blog\/wp-json\/wp\/v2\/posts\/1038\/revisions\/4216"}],"wp:attachment":[{"href":"https:\/\/www.jitendrazaa.com\/blog\/wp-json\/wp\/v2\/media?parent=1038"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.jitendrazaa.com\/blog\/wp-json\/wp\/v2\/categories?post=1038"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.jitendrazaa.com\/blog\/wp-json\/wp\/v2\/tags?post=1038"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}