• Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content
Introduction to the Data Model
 

Introduction to the Data Model

on

  • 2,567 views

Force.com 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, ...

Force.com 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.

Statistics

Views

Total Views
2,567
Views on SlideShare
2,254
Embed Views
313

Actions

Likes
1
Downloads
104
Comments
0

1 Embed 313

http://developer.force.com 313

Accessibility

Categories

Upload Details

Uploaded via as Microsoft PowerPoint

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment
  • Why? Project Management is a popular topic.

Introduction to the Data Model Introduction to the Data Model Presentation Transcript

  • Introduction to the Data Model
    Developers
    Reid Carlberg: salesforce.com
    @ReidCarlberg
    @ForceDotComLabs
  • Safe Harbor
    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 salesforce.com, 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.
    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 non-salesforce.com products, and utilization and selling to larger enterprise customers. Further information on potential factors that could affect the financial results of salesforce.com, 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.
    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. Salesforce.com, inc. assumes no obligation and does not intend to update these forward-looking statements.
  • Ask your questions in the Dreamforce Org!
  • Who Has…
    No or very little force.com experience?
    Modified a standard object?
    Created a custom object?
    Developed a complex app on the platform?
    Professional experience writing SQL?
  • Force.com: More Than a Repository
    Store
    Manage
    Understand
    Secure
    UI
    Search
    Scale
    DR
  • Today’s Goals
    Create objects, fields and relationships.
    Leverage relationship, summary and formula fields.
    Connect to security, analytics, UI, API and other services.
    Next steps!
  • The Lingo (Old  New)
    Tables  Objects
    Columns  Fields
    Keys  Ids, External Ids
    Foreign Keys  Relationships
    Row  Record
  • Standard Objects
    Users, Accounts, Contacts, Opportunities, Cases, etc.
  • Standard Objects Are Well Documented
    http://developer.force.com
  • Custom Objects
  • The Joy of Data Types
    Currency
    Percentage
    Phone
    Email
    URL
    Lookup Fields
    Master Detail Fields
    Roll Up Summary
    Rich Text
    Number, Text, Long Text, Date, Checkbox
  • Today’s Demo App: Project Management
    Project__c
    Milestone__c
    User
    Action__c
    No suffix: Standard; “__c”, custom; “__r”, relationship;
    “Feed” & “__Feed”; “Share” & “__Share”; “History” & “__History”; “Tag” & “__Tag”
  • Let’s Build an App!
  • Common Fields: Identity, Ownership and Audit
    ID*  GUID
    Name  Text or Autonumber
    Owner  Lookup to User
    CreatedBy*  Lookup to User
    CreatedOn*  Date time
    LastModifiedBy*  Lookup to User
    LastModifiedOn*  Date time
    *100% managed by Force.com
  • Relationships Are Easy!
    Standard Lookup
    “OwnerId”
    Project__c
    “Project__c”
    Milestone__c
    User
    Custom
    Master
    Detail
    “Milestone__c”
    Action__c
    “User__c”
    Custom Lookup
  • Many to Many Relationships Are Easy
    Project__c
    Account
    Twin Custom Master Detail
    AccountProjectJoin__c
  • Roll Ups, Formulas, External IDs
  • Relationships Are Powerful
    30 Open Tasks
    Project__c
    5 Open Tasks
    Milestone__c
    User
    “Show me Mary’s
    Assignment”
    Action__c
  • Formulas
    Spreadsheet like syntax
    Field default value
    Standalone & combination formulas
    Evaluated at access (view, API, report, etc)
  • External IDs
    Great for integration / migration.
    Required for the UPSERT operation.
    Facilitate automatic foreign key resolution.
  • Search, Analytics & Security
  • Misc Topics
    API: SOAP, REST, Bulk, Metadata
    SOQL and the Force.com IDE
    Record types
    Custom settings
    Recycle bins: record, field & object
  • Keys to Success
    Know your problem domain
    Model smart…
    …but don’t over normalize
    Use native force.com features
    Be security aware
  • Next Steps
    Get a Developer Edition
    http://developer.force.com
    Attend Another Intro Session!
    Workflow – Today 2:15p
    Force.com Code - Apex – Today 3:45p
    Force.com Pages - Visualforce – Today 5:15p
    Chatter Resources
    Twitter Resources
    @ReidCarlberg, @ForceDotComLabs
  • Introduction to the Data Model
  • Visit the Developer Training and Support Booth in Force.com Zone
    D I S C O V E R
    Developer training, certification and support resources
    that help you achieve
    S U C C E S S
    Find us in the Partner Demo Area of
    Force.com Zone 2nd Floor Moscone West
    Learn about Developer Certifications
    Discover Developer Learning Paths
  • Remember. . .
    • Check Chatter for additional session information
    • Get your developer Workbooks and Cheat Sheets in the Force.com Zone
    • Visit for more information related to this topic
    Don’t forget the survey!
  • How Could Dreamforce Be Better? Tell Us!
    Log in to the Dreamforce app to submit
    surveys for the sessions you attended
    Use the Dreamforce Mobile app to submit surveys
    OR
    Every session survey you submit is a chance to win an iPod nano!