Showing posts with label salesforce. Show all posts
Showing posts with label salesforce. Show all posts

Tuesday, 28 June 2016

Difference between Lookup Relationship and Master-Detail RelationShip in salesforce.

Lookup Relationship Master Detail Relation ship
Loosely coupled Tightly coupled
Max number of lookup is 25 Max number of master is 2
Parent is not a mandatory field Parent is a mandatory field
Partent delete child cannot delete parent delete child also delete
Roll up cannot be made on lookup Roll up can be made on master-detail
You can have a detail record without a lookup reference You cannot have a detail record without a master
You can set profile object permissions for a child record You cannot set profile object permissions for a child record



Tuesday, 7 June 2016

What are the main things need to consider in the “Master-Detail Relationship”?

 Point to remembeir when creating “Master-Detail Relationship”
 Parent child relationship is tightly coupled relationship having some below attributes
  • Parent reference become mandatory for child object.
  • Standard objects can't become child of any object.
  • Master details support Cascaded delete: if you delete the parent, it can cascade delete the child.
  • Sharing rules on child object's determind by parent.
  • You can have only 2 master details relationship on an object in salesforce.






Self Relationship

Self Relationship is a lookup relationship to the same object. Suppose let’s take an object “Merchandise”. Here we can create relationship in between the Account to Account (same object) object. That is called “Self Relationship”.

List examples of custom field types?

Text, Pick list, Pick list (multi select), Date, Email, Date/Time, Date, Currency, Checkbox, Number, Percent, Phone, URL, Text Area, Geolocation, lookup relationship, master detail relationship etc…..

A custom object contains some records, now my requirement is to create field in this object with master detail relationship. Can we create master detail relationship in this case?

No, directly we cannot create master details relationship if custom object contains existing records.
   Following are the steps to create to create master-detail relationship when records are available in custom object.
  1. First create field with lookup relationship.
  2. And then associate look field with parent record for every record
  3. Next change the data type of the field from look up to Master detail.

create Many – to – Many relationship?

Lookup and Master detail relationships are one to many relationships. We can create many – to – Many relationship by using junction object. Junction object is a custom object with two master detail relationships.

Saturday, 4 June 2016

What is Cloud Computing?

  • Pictorial representation of internet is Cloud.
  • Cloud Computing is nothing but internet computing.
  • With this approach everything can be done in internet, no need of any minimum hardware requirements and no need to install any software in local system.
  • Cloud Computing is an approach to provide the following services:-
    • SAAS (Software As A Service)
    • PAAS (Platform As A Service)
    • IAAS (Infrastructure As A Service)