Q1 : What is the object in Salesforce?
A : Custom objects are database tables that allow you to store data specific to your organization in salesforce.com. You can use custom objects to extend salesforce.com functionality or to build new application functionality.
Once you have created a custom object, you can create a custom tab, custom related lists, reports, and dashboards for users to interact with the custom object data. You can also access custom object data through the Force.com API.
Navigation to create the object in sales force: Setup->Build->Create->Object-> Click on the new object and create object according to your requirement.
Q2 : What’s the difference between Salesforce.com & Force.com?
A : Salesforce.com is a SaaS(Software-as-a-Service) product while Force.com is a PaaS product (Platform-as-a-Service). Salesforce.com has a selection of prepackaged solutions such as the Sales & Service Cloud that are designed for a specific purpose. While Force.com allows you to build your own applications. Salesforce.com is built on the Force.com platform.
Q3 : What Is Field Dependency?
A : According to the field selection on one field filter the pick list values on another field.
Q4 : How are bucket fields used in Salesforce?
A : Bucket fields can be used in Salesforce reports to group together field values. These fields are not created on the Salesforce platform and only exist in the report itself.
Q5 : What is sharing rule?
A : If we want to give access to other users we use sharing rules.
Q6 : What is difference insert() and database .insert() ?
A : Using the insert method we can insert the records but if any error occurs in any record system will throw an error insertion fail and none of the records are inserted.
If we want to execute partially success of bulk insert operation we will use database .insert.
Q7 : What are the main things need to consider in the “Master-Detail Relationship”?
A : Record-level access is determined by the parent, Mandatory on child for reference of the parent, cascade delete (if you delete the parent, it can cascade delete the child).
Q8 : List things that can be customized on page layouts?
A : We can customize different things on page layout like Fields, Buttons, Custom Links and Related Lists. We can also create sections.
Q9 : What Is Audit Trail?
A : Audit trail function is helpful in knowing the information or tracks all the recent setup changes that the administration does to the organization. It can store the last 6 months data.
Q10 : What is the difference between trigger and workflow?
A : Workflow – Workflow is an automated process that fired an action based on Evaluation criteria and rule criteria.
We can access a workflow across the object.
We cannot perform DML operation on workflow
We cannot query from a database
Trigger – Trigger is a piece of code that executes before or after a record is inserted or updated.
We can access the trigger across the object and related to that objects
We can use 20 DML operations in one trigger.
We can use 20 SOQL’s from database in one trigger.
Q11 : What is the difference between a role and a profile?
A : Profiles are both features that can be added to a user record in Salesforce. Roles are optionally added while Profiles are a basic requirement of setting up a user.
Profiles help to control object privileges such as CRED (Create, Read, Edit, Delete). They also contain system permissions that a user can carry out such as exporting data.
Roles on the other hand help with sharing records across an organization. They work in a hierarchical fashion, giving users access to records that are owned by people lower down in the hierarchy.
Q12 : What is a “Self Relationship”?
A : Self Relationship is a lookup relationship to the same object. Suppose let’s take an object “Merchandise”. Here we can create a relationship in between the Account to Account (same object) object. That is called “Self Relationship”.
Q13 : What options are available to you for deploying from a Sandbox to Production?
A : There are various ways to deploy from Sandbox to Production. The main way is to use a Salesforce feature called Change Sets. These allow you to package up components and then deploying them to another Salesforce Org. There are various other methods including ANT MIgration Tool, Force.com IDE and Unmanaged packages.
Q14 : What is Wrapper class?
A : A Wrapper class is a class whose instances are a collection of other objects.
It is used to display different objects on a Visual Force page in the same table.
Q15 : What are Static Resources?
A : Using Static Resources we can upload images, zip files, jar files, javascript and CSS files that can be referred in a visual force page.
The maximum size of Static Resources for an organization is 250mB.
Q16 : How many ways we can share a record?
A : Role Hierarchy:
If we add a user to a role, the user is above in the role hierarchy will have read access.
Setup -> manage users -> roles -> setup roles -> click on ‘add role’ -> provide name and save.
OWD: Defines the baseline setting for the organization.
Defines the level of access to the user can see the other user’s record
OWD can be Private, Public Read Only, Public Read and Write.
Setup -> Security Controls -> sharing settings -> Click on ‘Edit’
Manual Sharing: Manual Sharing is sharing a single record to a single user or group of users.
We can see this button detail page of the record and this is visible only when OWD setting is private.
Criteria Based Sharing rules: If we want to share records based on condition like share records to group of users
Whose criteria are country is India
Setup -> security controls -> sharing settings -> select the object and provide name and
Conditions and save
Apex sharing:
Share object is available for every object(For Account object share object is AccountShare ). If we want to share the records using apex we have to create a record for the shared object.
Q17 : How to call javascript using Static Resource in Visual Force page?
A : Add java script file in Static Resource setup -> develop -> Static Resources -> click on ‘New’ -> Name: filename and add file from local desktop and save.
We can use that file as follows in Visual Force page
<apex: includescript values=” {! $Resource.fileName}”/>
Q18 : When Should You Build Solutions Declaratively Instead Of With Code?
A : As a salesforce best practice, if something can be done using Configurations (Declarative) then its preferred over coding. The declarative framework is optimized for the platform and is always preferred.
Q19 : What are the actions in workflow?
A : 1. Email Alert
2. Task
3. Field Update
4. Outbound Message
Q20 : How many controllers can be used in a visual force page?
A : Salesforce comes under SAAS so, we can use one controller and as many extension controllers.
Q21 : What is the maximum size of the PDF generated on visualforce attribute renders?
A : 15MB
Q22 : What Is Permission Set?
A : Permission sets extend users functional access without changing users profile.
Lx: A user has only read access through profile on custoni object. an administrator wants to give access Edit and create operations to him without changing the profile. The administrator creates the permission set having edit and creates operation on the custom object and assign to that user.
Q23 : How to Create Master Details Relationship Between Existing Records?
A : Directly we can’t create Master-Detail relationship between existing records, first we have to create a Lookup relationship and provide valid lookup fields and it shouldn’t null.
Q24 : How Many Ways We Can Made Field Is Required?
A :
- While creation of field
- Validation rules
- Page Layout level
Q25 : What Is Roll-up Summary?
A : Roll-up displays the count of child records and calculates the sum, Min and max of fields of the child records.