Posts

Types of Record Sharing

Image
What is Record Sharing? To view or access a record in Salesforce, every user must have some permissions that is known as Sharing permissions. The permission may vary from user to user and not every user see the record in same way i.e. some user might have full access on record while other just have view permissions.  So let go into it and found out what are these.  In the above image, we can see 19 different types of Sharing that can be applied on a Record. Let check how they are shared and their usage. Profile Profiles are the first and basic level of access that a User have. Profile add the permission at Object Level i.e. object access, FLS, page layout access, Record types etc.  Each user can have only one Profile.  Setup --> Profile. Permission Set After profile, permission set's are used to open up the access at Object level. Permission sets are used if we need to open access for particular user or need to provide extra permission oth...

Visual-force Order of Execution

Image
Visual-force Order of Execution are divided in two parts, namely Get and Post Back request. We will see both of the one by one. Get Request   Firstly, the constructor's are called from the associated Controller or extension classes.  Secondly, constructor's from the Custom component controller or extensions are called.  In this step the expressions are evaluated on the custom component Attribute like assignTo are evaluated along with action methods and once the action methods are finished all other methods are evaluated on the Custom Components . In this step, view state is maintained. This is important to maintain necessary information between Database and Page.  The resulting HTML is sent to the browser. If there are any client-side technologies on the page, such as JavaScript, the browser executes them. Post Back Request In Post Back Request, firstly the View state is maintained to update the values on controller side (This doesn't...

Interview Questions - Set I

Ques 1. Explain Below <apex:actionFunction> <apex:actionSupport> <apex:commandLink> <apex:outputLink> <apex:outputText> <flow:interview> Ques 2.  What are Best code practices? Ans : below are the best practices (https://developer.salesforce.com/page/Apex_Code_Best_Practices)  #1: Bulkify your Code  #2: Avoid SOQL Queries or DML statements inside FOR Loops  #3: Bulkify your Helper Methods  #4: Using Collections, Streamlining Queries, and Efficient For Loops  #5: Streamlining Multiple Triggers on the Same Object  #6: Querying Large Data Sets  #7: Use of the Limits Apex Methods to Avoid Hitting Governor Limits  #8: Use @future Appropriately  #9: Writing Test Methods to Verify Large Datasets  #10: Avoid Hardcoding IDs Ques 3.  How to bypass Mixed DML operation error in main class? Ans : Asynchronous call (Future Call, Batch Job, Queueable...

Salesforce Admin 201

Today I am going to share Admin material which is created while I am preparing for it. Below set of questions are prepared from multiple sites and 100% accurate.  But as Salesforce is releasing thrice every year, one cannot rely on just questions. To be assure do read  Salesforce   Release Notes . 1  Universal Containers uses a custom field on the account object to capture the account credit status. The sales  team wants to display the account credit status on opportunities        Which feature should a system administrator use to meet the requirements?                •              Look-up Field                •              Roll-up summary field  ...