Introduction to the Data Model


Published on provides a powerful data persistence layer. It lets you create database tables and adds a lot of features right out of the box like triggers, relationships, default values, validation rules, reporting, and search. This session covers how to create your first database and use these powerful features to easily build a rich application.

Published in: Business
  • Be the first to comment

No Downloads
Total Views
On Slideshare
From Embeds
Number of Embeds
Embeds 0
No embeds

No notes for slide
  • Why? Project Management is a popular topic.
  • Introduction to the Data Model

    1. 1. Introduction to the Data Model<br />Developers<br />Reid Carlberg:<br />@ReidCarlberg<br />@ForceDotComLabs<br />
    2. 2. Safe Harbor<br />Safe harbor statement under the Private Securities Litigation Reform Act of 1995: This presentation may contain forward-looking statements that involve risks, uncertainties, and assumptions. If any such uncertainties materialize or if any of the assumptions proves incorrect, the results of, inc. could differ materially from the results expressed or implied by the forward-looking statements we make. All statements other than statements of historical fact could be deemed forward-looking, including any projections of subscriber growth, earnings, revenues, or other financial items and any statements regarding strategies or plans of management for future operations, statements of belief, any statements concerning new, planned, or upgraded services or technology developments and customer contracts or use of our services.<br />The risks and uncertainties referred to above include – but are not limited to – risks associated with developing and delivering new functionality for our service, our new business model, our past operating losses, possible fluctuations in our operating results and rate of growth, interruptions or delays in our Web hosting, breach of our security measures, the outcome of intellectual property and other litigation, risks associated with possible mergers and acquisitions, the immature market in which we operate, our relatively limited operating history, our ability to expand, retain, and motivate our employees and manage our growth, new releases of our service and successful customer deployment, our limited history reselling products, and utilization and selling to larger enterprise customers. Further information on potential factors that could affect the financial results of, inc. is included in our annual report on Form 10-K for the most recent fiscal year ended January 31, 2010. This documents and others are available on the SEC Filings section of the Investor Information section of our Web site. <br />Any unreleased services or features referenced in this or other press releases or public statements are not currently available and may not be delivered on time or at all. Customers who purchase our services should make the purchase decisions based upon features that are currently available., inc. assumes no obligation and does not intend to update these forward-looking statements.<br />
    3. 3. Ask your questions in the Dreamforce Org!<br />
    4. 4. Who Has…<br />No or very little experience?<br />Modified a standard object?<br />Created a custom object?<br />Developed a complex app on the platform?<br />Professional experience writing SQL?<br />
    5. 5. More Than a Repository<br />Store<br />Manage<br />Understand<br />Secure<br />UI<br />Search<br />Scale<br />DR<br />
    6. 6. Today’s Goals<br />Create objects, fields and relationships.<br />Leverage relationship, summary and formula fields.<br />Connect to security, analytics, UI, API and other services.<br />Next steps!<br />
    7. 7. The Lingo (Old  New)<br />Tables  Objects<br />Columns  Fields<br />Keys  Ids, External Ids<br />Foreign Keys  Relationships<br />Row  Record<br />
    8. 8. Standard Objects<br />Users, Accounts, Contacts, Opportunities, Cases, etc.<br />
    9. 9. Standard Objects Are Well Documented<br /><br />
    10. 10. Custom Objects<br />
    11. 11. The Joy of Data Types<br />Currency<br />Percentage<br />Phone<br />Email<br />URL<br />Lookup Fields<br />Master Detail Fields<br />Roll Up Summary<br />Rich Text<br />Number, Text, Long Text, Date, Checkbox<br />
    12. 12. Today’s Demo App: Project Management<br />Project__c<br />Milestone__c<br />User<br />Action__c<br />No suffix: Standard; “__c”, custom; “__r”, relationship; <br />“Feed” & “__Feed”; “Share” & “__Share”; “History” & “__History”; “Tag” & “__Tag”<br />
    13. 13. Let’s Build an App!<br />
    14. 14. Common Fields: Identity, Ownership and Audit<br />ID*  GUID<br />Name  Text or Autonumber<br />Owner  Lookup to User<br />CreatedBy*  Lookup to User <br />CreatedOn*  Date time<br />LastModifiedBy*  Lookup to User<br />LastModifiedOn*  Date time<br />*100% managed by<br />
    15. 15. Relationships Are Easy!<br />Standard Lookup<br />“OwnerId”<br />Project__c<br />“Project__c”<br />Milestone__c<br />User<br />Custom<br />Master <br />Detail<br />“Milestone__c”<br />Action__c<br />“User__c”<br />Custom Lookup<br />
    16. 16. Many to Many Relationships Are Easy<br />Project__c<br />Account<br />Twin Custom Master Detail<br />AccountProjectJoin__c<br />
    17. 17. Roll Ups, Formulas, External IDs<br />
    18. 18. Relationships Are Powerful<br />30 Open Tasks<br />Project__c<br />5 Open Tasks<br />Milestone__c<br />User<br />“Show me Mary’s<br />Assignment”<br />Action__c<br />
    19. 19. Formulas<br />Spreadsheet like syntax<br />Field default value<br />Standalone & combination formulas<br />Evaluated at access (view, API, report, etc)<br />
    20. 20. External IDs<br />Great for integration / migration.<br />Required for the UPSERT operation.<br />Facilitate automatic foreign key resolution.<br />
    21. 21. Search, Analytics & Security<br />
    22. 22. Misc Topics<br />API: SOAP, REST, Bulk, Metadata<br />SOQL and the IDE<br />Record types<br />Custom settings<br />Recycle bins: record, field & object<br />
    23. 23. Keys to Success<br />Know your problem domain<br />Model smart…<br />…but don’t over normalize<br />Use native features<br />Be security aware<br />
    24. 24. Next Steps<br />Get a Developer Edition<br /><br />Attend Another Intro Session!<br />Workflow – Today 2:15p<br /> Code - Apex – Today 3:45p<br /> Pages - Visualforce – Today 5:15p <br />Chatter Resources<br />Twitter Resources<br />@ReidCarlberg, @ForceDotComLabs<br />
    25. 25. Introduction to the Data Model<br />
    26. 26. Visit the Developer Training and Support Booth in Zone<br />D I S C O V E R<br />Developer training, certification and support resources <br />that help you achieve<br />S U C C E S S<br />Find us in the Partner Demo Area of <br /> Zone 2nd Floor Moscone West<br />Learn about Developer Certifications<br />Discover Developer Learning Paths<br />
    27. 27. Remember. . .<br /><ul><li>Check Chatter for additional session information
    28. 28. Get your developer Workbooks and Cheat Sheets in the Zone
    29. 29. Visit for more information related to this topic</li></ul>Don’t forget the survey!<br />
    30. 30. How Could Dreamforce Be Better? Tell Us!<br />Log in to the Dreamforce app to submit<br />surveys for the sessions you attended<br />Use the Dreamforce Mobile app to submit surveys<br />OR<br />Every session survey you submit is a chance to win an iPod nano!<br />