Objects

ObjectiveResourcesKey Facts
Explain how to create a custom object.Managing Objects
[Must / 5m / CertifiedOnDemand.com]
Explain the difference between an object and a tab.Exercise: Custom Object & Tab
[Should / ~10-20m / CertifiedOnDemand.com]

Managing Objects
[Repeated]

An object stores the field definitions and records. An object tab is used to expose an object's records within the user interface.

To view the remainder of this content, you must purchase the Salesforce.com Certified Administrator Study Guide.  Please Login or purchase the study guide.

41 Responses to “Objects”

  1. Mandy November 19, 2016 at 4:27 am #

    Hi John,

    Several questions on the use of standard objects:

    1. Standard objects are by default shared among various Apps – is this right?
    2. Is it a good practice in general to keep these standard objects shared among the various Apps (i.e. different App users can all access these standard objects)? I suppose not, since in real-world scenarios different Apps probably require different data to be save into these standard objects?
    3. Does it make more sense in general to associate the standard objects with just one App and create custom objects for each of the other Apps separately?
    4. Are standard objects clone-able through UI?

    Hope the questions make sense.

    Thank you.

    • JohnCoppedge December 17, 2016 at 1:17 am #

      1 – yes
      2 – in general you want to stick with the out of the box config and then modify as needed. most organizations dont really use the standard apps, as you can’t change the logo.
      3 – generally you create apps to match the selection of tabs/functionality that a group of users will need (e.g sales). It is not uncommon to have an app that exposes things differently for different groups (e.g. the sales app includes the campaigns tab – this tab is hidden for sales users but exposed for marketing users)
      4 – clone the configuration of the object: no. Clone records: yes

      hope that helps 🙂

      • Mandy December 17, 2016 at 6:59 am #

        Yes, that helps me understand how objects are used in real cases. Thanks.

  2. nk005347 October 10, 2016 at 9:17 am #

    is it necessary to go throught details about external object and relationships from exam point of view. it’s bit difficult to visualise since it can’t be tried in developer org instance.

  3. byeung August 17, 2016 at 4:21 am #

    I’ve just passed the exam! I highly recommend this COD site! Thanks John!

  4. sowjanya_karri March 18, 2016 at 1:45 pm #

    Hi John,

    If i create a custom field on the account object to capture account credit status and want to display that field on opportunity object..
    which feature should i use?..workflow field update (or) cross-object formula field ? and why?

    • JohnCoppedge April 11, 2016 at 12:02 am #

      Formula if you want the information to be read only on the opportunity. If you wanted to update the account field based on a change to the opportunity field then it could not be a formula.

  5. tejalr8@gmail.com February 16, 2016 at 3:23 am #

    Hi john,
    First i want to ask you that …is the S-controls come under ADM(201)..if yes then,
    Can you give some good link to understand S- controls in sales force and there features.
    i read this document.(https://help.salesforce.com/apex/HTViewHelpDoc?id=dev_about_scontrols.htm)
    but not getting much clear idea..do u have any suggested video for that.
    Thank you.
    Tejal.

    • JohnCoppedge February 16, 2016 at 1:39 pm #

      No they should not be addressed- they are code-based and also completely deprecated (you can’t create new ones)

  6. abojic November 3, 2015 at 10:34 pm #

    Re Max Number of Roll-Up Summary fields per object:
    It says above that 10 is the max number of roll-up summary fields per object. I cannot find this reference in Salesforce documentation. Is this old information?

    • Munira Majmundar November 5, 2015 at 5:16 am #

      I think with the Winter ’16 release, that number have increased to 25 from 10.

      • JohnCoppedge November 8, 2015 at 8:16 pm #

        Thanks for the note – this will get updated when I update the site for Winter 16

  7. VAIBHAV OBEROI May 22, 2015 at 11:22 am #

    Hi John,

    Thanks for putting together the guide. Its extremely helpful.

    I have a problem I am struggling with.

    I am trying to create a MASTER DETAIL relationship between two STANDARD Objects however I dont see that as option when I try creating a new field on a standard object?? I see that as option when I try and create a field on a custom object.

    can you possibly guide me as to why I am seeing this behaviour??

    It is a fact that salesforce does allow standard objects to be Master in a master detail relationship?? Funny why I cant see it as an option.

    Also is there a limit on the number of Master detail relationships a STANDARD object can have? I believe the limit is 2 for Custom objects.

    Will appreciate your advice on the above.
    Thanks

    Vaibhav

    • JohnCoppedge May 31, 2015 at 6:09 pm #

      Hi Vaibhav,

      A standard object can never be the detail object within a master-detail relationship; you cannot establish the relationship you are attempting to create. I believe you are correct that the max is 2 master-detail relationships on one object (which is typical of a junction object). Cheers,

      John

  8. Cloud Force April 12, 2015 at 6:27 pm #

    Thanks Rovita for your response.
    However; I think parent records can be deleted in a master detail relationship which will automatically delete the corresponding child records.

    Hi John,

    Pease clarify on the below questions.

    1. While creating a lookup relationship you have an option – Don’t allow deletion of the lookup record that’s part of a lookup relationship. If this option is enabled then it does not allow me to delete the parent record (I hope I did the test correctly).
    It looks almost similar to the behaviour of a master detail relationship when you enable this option from the lookup except you cannot delete the parent record if the parent has any child record. If this scenario is true then there would be some other reason/logic for not allowing to create a rollup summary if objects are related using lookup relationship.

    2. Does Standard object always associate with the many/detail side in a lookup relationship or is there any exception?

    Thanks.

    • JohnCoppedge April 13, 2015 at 4:09 pm #

      1. The limitation was a decision made by Salesforce – I suspect for performance reasons, but ultimately I don’t know :/ No rollups without a master-detail relationship for custom objects, however. There are AppExchange packages that can work around that.
      2. True for master/detail – a standard object is going to be the master of any custom m/d relationship created. Same is not true for lookups. E.g. A campaign that references a venue object via lookup relationship would be an example where the venue is the many side of the relationship.

  9. Rovita Almeida April 11, 2015 at 7:39 pm #

    Roll-up Summary fields calculate values from a set of related records. In a Master Detail relationship, the child cannot exist without a parent which means you cannot delete the parent, whereas in a Lookup relationship, child can exist without a parent. If the rollup summary field is referenced in, say a report, and you delete that record (which a possible in a lookup relationship), you don’t want inaccurate information. I think that is the reason why Rollup summary fields can be created only in a Master Detail relationship.

    • JohnCoppedge April 12, 2015 at 6:32 pm #

      That’s a good thought Rovita – but the relationship between account and opportunity is a lookup (and yet you can use a rollup summary field). Ultimately it was probably a design/engineering decision made by Salesforce.

      • Munira Majmundar November 5, 2015 at 5:09 am #

        But, John, as you mentioned earlier, relationship between Account/Opportunity is non-typical!

  10. Cloud Force April 4, 2015 at 9:59 am #

    Thanks John for the answer. My question is : I would like to know the logic or reason why rollup summary cannot be created if custom objects are related using lookup relationship.

    • JohnCoppedge April 12, 2015 at 6:30 pm #

      This is a Salesforce limitation, why that limitation exists I’m not sure.

      • Munira Majmundar November 5, 2015 at 5:08 am #

        Let me take a shot at this.

        Roll-up Summary sums up values from the Detail object and renders it on the Master Object. This is feasible because, in a Master-Detail relationship objects are bound to each other (i.e. a child has to have a parent). In a Lookup relationship, on the other hand, the child does not have to have a parent. So, summing up values of a child object and rendering it on a parent object does not make sense in a Lookup relationship because, here, a parent and child do not have a binding relationship and are not committed to each other.

  11. Cloud Force March 31, 2015 at 7:36 pm #

    Hi John,

    Why roll up summary field is getting disabled while selecting a look up relationship for a particular field? Is there any specific logic behind that?

    Thanks.

    • JohnCoppedge April 3, 2015 at 5:56 pm #

      Not sure exactly what the question is – a rollup summary can only be created with master/detail relationships or select lookup relationships (e.g. account/opportunity). There may be limits on the fields that you can filter on (e.g. you may not be able to filter data based on a cross-object formula)…

  12. Alex Messinger February 18, 2015 at 2:19 pm #

    Is there a list of which features require activation? I also am fuzzy on what the correct terms are for ‘something the admin needs to turn on’ (“enabling??”) vs ‘something salesforce support needs to turn on’ (“feature activation”??).

    • JohnCoppedge February 18, 2015 at 3:46 pm #

      Feature activation = contact support. Unless specifically mentioned, a feature should be configured (versus activated). I don’t know of any list although that would be great if there were one!

  13. Mian Fayyaz Ahmed December 7, 2014 at 11:07 am #

    Administrator made one field as required field but there are few user still able to create record without completing the required field. How Administrator can sort this issue.

    a. Make sure field level security is not set to “read only” in user profile.
    b. Make sure field set as required on all page layouts assigned in profile.
    c. make sure the user have “edit permission” on field in assigned profile.
    d. Make sure user have “Modify All” permission in profile.

    Please if some explain from his/her experience.

    Regards

    • JohnCoppedge December 8, 2014 at 4:10 pm #

      Probably make sure field is required on page layout. However, that would not stop the user from creating records via the API without the field populated.

      None of the other answers would either though – what would really work is to modify the field itself and make the field required – this would be enforced via the API as well.

    • Rovita Almeida April 11, 2015 at 8:11 pm #

      Though it’s an old question, let me elaborate what John has already said about making the field required in a page layout.
      The answer should be choice b.
      I think the choice is not worded correctly. It should be – Make sure field ‘is’ set as required on all page layouts assigned in profile..

      There are 3 ways to make a field required
      (reference: https://help.salesforce.com/apex/HTViewSolution?id=000003107&language=en_US )-
      1. Field level Requirements:
      This is the most restrictive of requirements and it requires the field to be entered all the time, regardless of how the record is saved (i.e. through an integration, the API, mass upload, or through the User Interface)
      2. Page Layout
      This option only makes the field required when the specific page layout that you make this field required is accessed. Therefore, you could technically make this required for some users using a particular page layout but not others.
      3. Validation Rule Requirement
      By creating a rule to check if the field isBlank or isNull (in case of number or currency field)

  14. Param Singh September 1, 2014 at 11:55 pm #

    Question – if in a master detail relationship, the detail object can not be a standard object, how come Account-Opportunity is a master detail relation as both are std objects?

    • JohnCoppedge September 2, 2014 at 1:31 pm #

      The relationship between opp and account is non-typical. If you were to recreate the relationship using custom objects, it would have to be a master-detail relationship. SFDC probably did this to facilitate rollup summaries specifically on the account/opportunity relationship (as it is quite a popular one) despite the lookup relationship between the two.

  15. Tasnim Tailor June 13, 2014 at 1:46 pm #

    I’ve created a tab and marked it as hidden for an object. Can I still search for the records in that object?

    • JohnCoppedge June 16, 2014 at 3:10 pm #

      If the tab is hidden you should not get search results

      • Garima Achieve March 21, 2015 at 9:57 am #

        Is search not dependent on the profile access on record? means if profile has read or edit access; then can we search the record in object irrespective of the fact that tab is hidden?

        Please clarify.

        • JohnCoppedge March 22, 2015 at 7:50 pm #

          If the tab is hidden you should not see the search results however you would be able to access the data (eg via API or a related record) if you have read access.

  16. Sreedurga Prabhala February 21, 2014 at 3:40 am #

    Hi John,

    I am confused about the the limits with respect to Recycle Bin. Can you please confirm with respect to latest update/information?

    Number of days the following will remain in the recycle bin until they are permanently deleted?
    Deleted records – 15 days or 30?
    Deleted objects – 15 days or 30?
    Deleted custom fields – 15 days or 45?

    Thanks,
    Sree

    • Rob Hawthorn March 4, 2014 at 7:17 am #

      Me & a couple of colleagues had this question too, any ideas?

    • JohnCoppedge March 7, 2014 at 3:38 am #

      Sree- it is 15 days all around. Do I reference other periods on the site?

Leave a Reply