Deprecated: Optional parameter $list declared before required parameter $is_script is implicitly treated as a required parameter in /home1/oijoiv2f/public_html/wp-content/plugins/apus-framework/libs/redux/ReduxCore/inc/class.redux_cdn.php on line 21

Deprecated: Optional parameter $register declared before required parameter $footer_or_media is implicitly treated as a required parameter in /home1/oijoiv2f/public_html/wp-content/plugins/apus-framework/libs/redux/ReduxCore/inc/class.redux_cdn.php on line 45

Deprecated: Optional parameter $register declared before required parameter $footer_or_media is implicitly treated as a required parameter in /home1/oijoiv2f/public_html/wp-content/plugins/apus-framework/libs/redux/ReduxCore/inc/class.redux_cdn.php on line 104

Deprecated: Optional parameter $expire declared before required parameter $path is implicitly treated as a required parameter in /home1/oijoiv2f/public_html/wp-content/plugins/apus-framework/libs/redux/ReduxCore/inc/class.redux_functions.php on line 54

Deprecated: Optional parameter $depth declared before required parameter $output is implicitly treated as a required parameter in /home1/oijoiv2f/public_html/wp-content/themes/entaro/inc/classes/megamenu.php on line 155

Deprecated: Optional parameter $depth declared before required parameter $output is implicitly treated as a required parameter in /home1/oijoiv2f/public_html/wp-content/themes/entaro/inc/classes/mobilemenu.php on line 147

Deprecated: Optional parameter $args declared before required parameter $wp_customize is implicitly treated as a required parameter in /home1/oijoiv2f/public_html/wp-content/plugins/apus-framework/libs/redux/ReduxCore/inc/extensions/customizer/extension_customizer.php on line 583

Deprecated: Optional parameter $args declared before required parameter $wp_customize is implicitly treated as a required parameter in /home1/oijoiv2f/public_html/wp-content/plugins/apus-framework/libs/redux/ReduxCore/inc/extensions/customizer/extension_customizer.php on line 606

Warning: Cannot modify header information - headers already sent by (output started at /home1/oijoiv2f/public_html/wp-content/plugins/apus-framework/libs/redux/ReduxCore/inc/class.redux_cdn.php:21) in /home1/oijoiv2f/public_html/wp-includes/rest-api/class-wp-rest-server.php on line 1794

Warning: Cannot modify header information - headers already sent by (output started at /home1/oijoiv2f/public_html/wp-content/plugins/apus-framework/libs/redux/ReduxCore/inc/class.redux_cdn.php:21) in /home1/oijoiv2f/public_html/wp-includes/rest-api/class-wp-rest-server.php on line 1794

Warning: Cannot modify header information - headers already sent by (output started at /home1/oijoiv2f/public_html/wp-content/plugins/apus-framework/libs/redux/ReduxCore/inc/class.redux_cdn.php:21) in /home1/oijoiv2f/public_html/wp-includes/rest-api/class-wp-rest-server.php on line 1794

Warning: Cannot modify header information - headers already sent by (output started at /home1/oijoiv2f/public_html/wp-content/plugins/apus-framework/libs/redux/ReduxCore/inc/class.redux_cdn.php:21) in /home1/oijoiv2f/public_html/wp-includes/rest-api/class-wp-rest-server.php on line 1794

Warning: Cannot modify header information - headers already sent by (output started at /home1/oijoiv2f/public_html/wp-content/plugins/apus-framework/libs/redux/ReduxCore/inc/class.redux_cdn.php:21) in /home1/oijoiv2f/public_html/wp-includes/rest-api/class-wp-rest-server.php on line 1794

Warning: Cannot modify header information - headers already sent by (output started at /home1/oijoiv2f/public_html/wp-content/plugins/apus-framework/libs/redux/ReduxCore/inc/class.redux_cdn.php:21) in /home1/oijoiv2f/public_html/wp-includes/rest-api/class-wp-rest-server.php on line 1794

Warning: Cannot modify header information - headers already sent by (output started at /home1/oijoiv2f/public_html/wp-content/plugins/apus-framework/libs/redux/ReduxCore/inc/class.redux_cdn.php:21) in /home1/oijoiv2f/public_html/wp-includes/rest-api/class-wp-rest-server.php on line 1794

Warning: Cannot modify header information - headers already sent by (output started at /home1/oijoiv2f/public_html/wp-content/plugins/apus-framework/libs/redux/ReduxCore/inc/class.redux_cdn.php:21) in /home1/oijoiv2f/public_html/wp-includes/rest-api/class-wp-rest-server.php on line 1794
{"id":798,"date":"2017-07-08T07:10:08","date_gmt":"2017-07-08T07:10:08","guid":{"rendered":"http:\/\/salesforcenextgen.com\/?p=798"},"modified":"2020-12-28T19:46:19","modified_gmt":"2020-12-28T19:46:19","slug":"salesforce-interview-questions-answers-part-1","status":"publish","type":"post","link":"https:\/\/salesforcenextgen.com\/salesforce-interview-questions-answers-part-1\/","title":{"rendered":"Salesforce Interview Questions and Answers Part 1"},"content":{"rendered":"

Salesforce Interview Questions and Answers<\/strong><\/span><\/p>\n

    \n
  1. What is Salesforce and what is the architecture of Salesforce?<\/strong><\/li>\n<\/ol>\n

    A.\u00a0Salesforce is a Cloud based software made on Force.com platform, it has a pre-built feature to serve as a CRM, \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0but Salesforce is not limited to be called CRM, It has many out of the box features. Salesforce uses Multitenant \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0architecture<\/p>\n

    <\/p>\n

    2.\u00a0What is Multitenancy?<\/strong><\/p>\n

    A.\u00a0It is the methodology in which all users share IT related resources to make it cost effective even for a small business. It helps in reducing the initial cost of starting a new.<\/p>\n

    \"Salesforce\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0\u00a0\"Salesforce<\/p>\n

    Images sourced from site\u00a0https:\/\/developer.salesforce.com\/page\/Multi_Tenant_Architecture<\/span><\/p>\n

    3.\u00a0Can you explain multi-tenant Data model?<\/strong><\/p>\n

    A.\u00a0To deal with a tremendous, constantly changing arrangement of the genuine database, Force.com implements it storage model with the help of metadata, data and pivot table as described in the diagram below.<\/p>\n

    \"Salesforce<\/p>\n

    Images sourced from site\u00a0https:\/\/developer.salesforce.com\/page\/Multi_Tenant_Architecture<\/span><\/p>\n

    4. \u00a0Describe an object in Salesforce? How many types of objects are there in Salesforce?<\/strong><\/p>\n

    A.\u00a0They are similar to database tables of an organization and are used to store a record in Salesforce. Salesforce has provided us with some predefined objects which are known as standard objects and Salesforce has provided us with the ability to create new objects which are known as the Custom object.<\/p>\n

    5.\u00a0What is the distinguishing factor between the standard object and custom object?<\/strong><\/p>\n

    A.\u00a0API name of Custom objects contains a suffix of ‘__c’. It is added automatically by Salesforce. E.g customobjectName__c<\/p>\n

    6.\u00a0What is a field and how many types of field are there in Salesforce?<\/strong><\/p>\n

    A.\u00a0There are 4 types of fields, 1) Compound Field 2) system Field 3) required Field 4) custom field<\/p>\n

    7. What is a relationship field in Salesforce and how many types of relationships are there in Salesforce?<\/strong><\/p>\n

    A.\u00a0A relationship field is the one which associates one object with another object. A relationship can be formed between standard objects, custom objects and also between custom and standard objects. Salesforce provides three type of relationships, 1) Lookup 2) Master-Detail Relationship 3) External Relationship, the first two are the most common relationship used throughout the Salesforce.<\/p>\n

    8.\u00a0The difference between lookup and master-detail relationship?<\/strong><\/p>\n

    A.\u00a0There are fundamental differences in the behavior and record sharing that you need to read up on.<\/p>\n

    The most important difference is that master-detail has a direct dependency between the objects:<\/p>\n

    You cannot have a detail record without a master.
    \nThe detail record inherits sharing rules from the master.
    \nThe maximum number of master-detail relationships are limited to two.
    \nAll related detail objects are deleted if the master object is deleted.<\/p>\n

    Lookups are used when the behavior of the master-detail – particularly around sharing rules, profile permissions and cascade delete are not required.
    \nwhen multiple parents need to be referenced then we use look-up<\/p>\n

    9.\u00a0Define Self Relationship in Salesforce?<\/strong><\/p>\n

    A.\u00a0It is a look up\u00a0Relation to the same object.<\/p>\n

    10.\u00a0How many types of Object Relationships are supported by Salesforce?<\/strong><\/p>\n

    A.\u00a0Salesforce supports three types of object relationship: 1) one -to- one 2) one – to – many 3) many – to – many<\/p>\n

    11.\u00a0What is a trigger, when do we use before and after trigger?<\/strong><\/p>\n

    A.\u00a0A trigger is the flow of code which initiates before or after a DML Event. i.e. before insert or after update etc. We use before trigger if we want to process data before the record is committed and after trigger where we want to use the values from the committed record to change the value in other object’s record.<\/p>\n

    Salesforce interview Questions based Apex Collections<\/strong><\/p>\n

    \u00a0<\/strong>Apex Collections are set of identical elements grouped together in a collection. A collection can be of three types list, set and map. Interview related questions as per the ones which I have faced during my interviews.<\/p>\n

    Q.What are the types of collections which are supported by <\/strong>salesforce?<\/strong><\/p>\n

    A. Salesforce supports three types of collections<\/p>\n

      \n
    1. List<\/li>\n
    2. Set<\/li>\n
    3. Map<\/li>\n<\/ol>\n

      Q. What are the difference between list, set and maps?<\/strong><\/p>\n

      A. There are many differences between these collections.<\/p>\n

        \n
      1. List is ordered, it allows duplicate values, values entered can be indexed. Sort method is available and contains methods is not available.<\/li>\n
      2. Set is unordered, it does not allow duplicates and values entered cannot be indexed. Sort Method is not available and contains method is available in set.<\/li>\n
      3. Map is a key value pair collection. It uses containsKey method, keyset() to get only the keys, values() to fetch all the values.<\/li>\n<\/ol>\n

        Q. what is the difference between add() and addAll() method?<\/strong><\/p>\n

        A add() is used to add only one element in the collection and addAll() is used to add a collection to another similar collection.<\/p>\n

        Q. how to check whether a list is null or empty?<\/strong><\/p>\n

        A. We check a list is empty or null by checking following condition\/<\/p>\n

        If((listObj != null)&&(list.size()>0))<\/p>\n

        ****More Questions\u00a0to come\u00a0<\/span><\/p>\n

        Next:\u00a0Salesforce Interview Question and Answers Part 2<\/a><\/span><\/p>\n","protected":false},"excerpt":{"rendered":"

        Salesforce Interview Questions and Answers What is Salesforce and what is the architecture of Salesforce? A.\u00a0Salesforce is a Cloud based software made on Force.com platform, it has a pre-built feature to serve as a CRM, \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0but Salesforce is not limited to be called CRM, It has many out of …
        Continue reading Salesforce Interview Questions and Answers Part 1<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[54],"tags":[58,40,57,39,38,59,55,51,56,52],"_links":{"self":[{"href":"https:\/\/salesforcenextgen.com\/wp-json\/wp\/v2\/posts\/798"}],"collection":[{"href":"https:\/\/salesforcenextgen.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/salesforcenextgen.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/salesforcenextgen.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/salesforcenextgen.com\/wp-json\/wp\/v2\/comments?post=798"}],"version-history":[{"count":5,"href":"https:\/\/salesforcenextgen.com\/wp-json\/wp\/v2\/posts\/798\/revisions"}],"predecessor-version":[{"id":2224,"href":"https:\/\/salesforcenextgen.com\/wp-json\/wp\/v2\/posts\/798\/revisions\/2224"}],"wp:attachment":[{"href":"https:\/\/salesforcenextgen.com\/wp-json\/wp\/v2\/media?parent=798"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/salesforcenextgen.com\/wp-json\/wp\/v2\/categories?post=798"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/salesforcenextgen.com\/wp-json\/wp\/v2\/tags?post=798"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}