Wednesday, 22 March 2017

SFDC



Q1. Types of Relationship and Difference between them.
Ans: There are 4 types of relationship in Salesforce
  1. Master Detail Relationship(also known as Parent Child Relationship)
  2. Many To Many Relationship
  3. Lookup Relationship
  4. Hierarchical Relationship(It is available only on user Object, We cannot create this relationship)

Q2. What are the Exception handling types in sfdc except try catch block?
Ans:1. AsyncException
2. CalloutException
3.  DmlException
4.NullPointerException
5.XmlException
6.SecurityException
7.TypeException
8.StringException
9.SObjectException
10.SearchException

Q3. Difference between SOQL and SOSL
Ans: Salesforce Object Query Language(SOQL)
1.It is search in single Object.
2.SOQL return records.
3.It can use in triggers and classes.
4.We can perform DML operation on query results.
Salesforce Object Search Language(SOSL)
1.It is search in multiple object.
2.It is return Fields.
3.It can use in triggers and classes.
4.We cannot perform DML operation on search result.

Q4. How to handel null pointer exception in salesforce?
Ans:Null Pointer Exception is a run time exception. NullPointerException thrown when an application attempts to use object reference having the null value.
Ex. String a;
a.toLowerCase(); //Since a is null,this call causes a nullpointerexception   

Q5. How to use Junction Object in project?
Junction Object is used to create many-to-many relationships between objects.If you take the Recruiting application example, you can see that a Position can be linked to many Candidates, and a Candidate can apply for different Positions. To create this data model you need a third object "Job Application" that links the 2.
  
Q6. Types of Triggers in Salesforce
Ans: Trigger: Trigger is a piece of code that executes before or after a record is inserted or updated.
There are two types of triggers:
  1. Before Trigger: before trigger are used to update or validate records values before they are saved to the database.
  2. After Trigger: After trigger are used to access field values that are set by the system and to effect changes in other records, such as logging into an audit table or firing asynchronous events with a queue. The records that fire the after trigger are read only.

Q7. What is governor limit in salesforce?
Ans: Governor limit are run time limits enforced by the apex runtime engine to ensure that code doesn't misbehave.

Q8. What is apex data loader?
Ans: Apex data loader is used to insert, update, upsert, export the data. By using apex data loader we can import the data from outside the salseforce also.

Q9. What is profile and Role in salesforce?
Ans: Profile: Profile is object level and field level access and it is mandatory for all users.
Role: Role is Record level access and it is not mandatory for all users.

Q10. What is OWD?
Ans: Organization-Wide Sharing Defaults(OWD) defines the base line setting for the organization. It defines the level of access to the user can see the other user's records. OWD can be Private, Public Read Only, Public Read and Write.

Q11. What is workflow?
Ans: Workflow is an automated process that fired an action based on Evaluation criteria and rule criteria. We can perform DML operation on workflow. WE can access a workflow across the object.

No comments:

Post a Comment