Appshark Salesforce Interview Questions

10 How to call javascript using in VisualForce page?

Add javascript file in Static Resource setup -> develop -> Static Resources -> click on ‘New’ -> Name: filename and add file from local desktop and save.

8 What is the Syntax of SOQL Statement?



What are Governor Limits in Salesforce?

In Salesforce, it is the Governor Limits which controls how much data or how many records you can store in the shared databases. Why? Because Salesforce is based on the concept of multi-tenant architecture. In simpler words, Salesforce uses a single database to store the data of multiple clients/ customers. The below will help you relate to this concept.

To make sure no single client monopolizes the shared resources, Salesforce introduced the concept of Governor Limits which is strictly enforced by the Apex run-time engine.

Governor Limits are a Salesforce developer’s biggest challenge. That is because if the Apex code ever exceeds the limit, the expected governor issues a run-time exception that cannot be handled. Hence as a Salesforce developer, you have to be very careful while developing your application. To learn more about it, enroll for Salesforce developer certification today.

Different Governor Limits in Salesforce are:

  • Per-Transaction Apex Limits
  • Platform Apex Limits
  • Static Apex Limits
  • Size-Specific Apex Limits
  • Miscellaneous Apex Limits
  • Email Limits
  • Push Notification Limits
  • 1 What is a profile? Can two users have the same profile?

    The profile is defined as a collection of rules and procedures a person needs to follow to access particular records. There are multiple profiles available in Salesforce. For example, a sales profile can have access to leads, opportunities, contacts, campaigns, etc.

    As far as the second question is considered, the answer would be yes. The people who work in one department have the same profile. So the people who work under a particular department would be assigned with the same profiles.

    As we have seen in the sales profile, many people work under it and every person who works under is assigned the same profile. Hence any number of people can have the same profile.

    3 How we can create an MDR on those objects where we already have records?

  • First, we create LR between the two objects.
  • Connect all child records to parents.
  • Convert the field type from LR to MDR.
  • 7 What is the Apex Trigger in Salesforce?

    The trigger is an Apex Code that executes before or after. The following types of DML Operations:

  • Insert
  • Update
  • Delete
  • Merge
  • Upsert
  • Undelete
  • 1 What are the issues you faced on joined reports?

    There are four types of reports that are available in Salesforce, which are as follows.

  • The tabular report is those that give us the total in a tabular format.
  • Matrix report the format where grouping is done based on columns and rows.
  • The summary report gives us detailed reports based on columns.
  • Joined reports which are capable of allowing two or more reports in one report.
  • 4 What are the default indexed fields in Salesforce?

    We have some fields which are indexed by default in Salesforce, which are :

  • Name
  • ID
  • Owner fields
  • Master-detail relationship fields
  • Lookup fields
  • Last modified dates
  • Audit dates
  • What is the use of writing sharing rules? Can you use sharing rules to restrict data access?

    Sharing rules are written to give edit access (public read and write) or public read only access to certain individuals in Salesforce org. A classic example is when:- only your managers or superiors need to be given extra credentials to your records in objects as compared to your peers.

    By default, all users in your organization will have organization-wide-default sharing settings of either Public Read Only or Private. To give access to more records, which users do not own, we write sharing rules. Example: Sharing rules are used to extend sharing access to users in public groups or roles. Hence, sharing rules are not as strict as organization-wide default settings. They allow greater access for those users.

    As far as the second part of the question is concerned, the answer is no. We cannot use sharing rules to restrict data access. It is only used for allowing greater access to records.

    Salesforce Interview Questions #salesforce #interview

    Related Posts

    Leave a Reply

    Your email address will not be published. Required fields are marked *