What's New in Chatter?
Upcoming SlideShare
Loading in...5
×
 

Like this? Share it with your network

Share

What's New in Chatter?

on

  • 2,396 views

Social networking in the enterprise is new and evolving quickly. In this session we'll provide you, as developers, with the information you need to leverage the latest advances in Chatter in the ...

Social networking in the enterprise is new and evolving quickly. In this session we'll provide you, as developers, with the information you need to leverage the latest advances in Chatter in the applications you're building. After all, better collaboration means happier users.

Statistics

Views

Total Views
2,396
Views on SlideShare
2,327
Embed Views
69

Actions

Likes
1
Downloads
66
Comments
0

2 Embeds 69

http://developer.force.com 68
https://twitter.com 1

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
  • Quick switch to demo in the dreamforce app…. Show feed item. Do a post. Ask people to comment on it and follow alongHow many of you have used chatter in the dreamforce app?
  • Quick switch to demo in the dreamforce app…. Show feed item.
  • Quick switch to demo in the dreamforce app…. Show feed item.
  • Do quick demo of enabling entity tracking.
  • Explain bullets in detail
  • Give example of a group. Talk about files in groups.
  • Fix Grey here. Probably not the standard template
  • Talk to Carter About this one.
  • Maybe show live feeds here. No other session will have this.

What's New in Chatter? Presentation Transcript

  • 1. What’s New in Chatter?
    Developers
    Will Gradin: salesforce.com
    Carter Thaxton: salesforce.com
    Anjali Joshi: Timba Software
  • 2. 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.
  • 3. Agenda
    Fundamental Concepts
    Core API Entities
    Groups
    Patterns
    Sample App: Post via Apex and Visualforce
    Demo: Twitter Chatter Integration
    Recommended Reading
  • 4. Force.com Architecture
  • 5. Terminology
    A ‘Feed Item’ is an entry in the feed
    Feed Tracked Change (change on a record)
    Post (text, content, or link)
    Status update (change to UserStatus field on User)
  • 6. Terminology
    All Feed Items have a ParentId
    Record that changed
    User who received post
  • 7. Terminology
    And a CreatedBy (User who Performed the Action)
    Updated record
    Changed status
    Authored post
  • 8. Agenda
    Fundamental Concepts
    Core API Entities
    Groups
    Chatter Data Model
    Patterns
    Sample App: Post via Apex and Visualforce
    Demo: Twitter Chatter Integration
    Recommended Reading
  • 9. Basic API Entities
    EntitySubscription
    SubscriberId(the user) is following the ParentId (user or record)
    ** Everyone implicitly follows themselves
  • 10. Viewing the Feed
    NewsFeed (Chatter Tab)
    ParentId is followed by the user
    or
    I’m a member of the group
  • 11. Viewing the FeedUserProfileFeed(User Profile Page)
    FeedItems where
    parentId = user
    or
    createdById= user
  • 12. Viewing the FeedEntityFeed(Record Detail Page)
    FeedItemswhere
    parent.Type= Account, contact etc.
  • 13. FeedItem Children
    • Record creation or changing a field
    • 14. Old and new values
    • 15. N:1 relationship with Feed Item
    • 16. Deleteable via API
    FeedTrackedChange
    • Text, Content, Link Posts or Status change
    • 17. 1:1 relationship with Feed Item
    FeedPost
    • CreatedBy is comment author
    • 18. 0 or more FeedComments per Feed Item
    • 19. Can’t create directly
    FeedComment
  • 20. SecurityChatter does not alter force.com’s security model
    Chatter changes how users see data
    Pushed to them in a feed
    Not what they can see
    Viewing a FeedItem requires read-access on the ParentId
    If a user loses access, they will no longer see the FeedItem
    User Profile Feeds are public
  • 21. Agenda
    Fundamental Concepts
    Core API Entities
    Groups
    Chatter Data Model
    Patterns
    Sample App: Post via Apex and Visualforce
    Demo: Twitter Chatter Integration
    Recommended Reading
  • 22. Groups
    Groups = Collection of users collaborating together
    Any user can create groups
    Share Text, Links, and files with the group
    Posts appear in members’NewsFeed
  • 23. Group Types
    Public
    Private
    • Anyone can join(no approval required)
    • 24. Anyone can view the feed (even non-members)
    • 25. Group admin controls membership
    • 26. Only members can view feed
    Chatter is about collaborationMake groups public whenever possible
  • 27. Group API Access
    API Entities
    Collaboration
    Group
    CollaborationGroup Member
    Create a
    Group
    Create aGroup Member
    • Insert CollaborationGroup
    • 28. Specify name and type
    • 29. Specify MemberId and CollaborationGroupID
  • Agenda
    Fundamental Concepts
    Core API Entities
    Groups
    Chatter Data Model
    Patterns
    Sample App: Post via Apex and Visualforce
    Demo: Twitter Chatter Integration
    Recommended Reading
  • 30. Chatter Data Model
    User status
    Profile Image
    Record can be any object that is Chatter enabled
    * All custom objects are Chatter “enabled”.
    * A user is an object.
  • 31. Agenda
    Fundamental Concepts
    Core API Entities
    Groups
    Chatter Data Model
    Patterns
    Sample App: Post via Apex and Visualforce
    Demo: Twitter Chatter Integration
    Recommended Reading
  • 32. Writing Efficient Feed Queries
    1
    Always use a LIMIT Clause
    We show 20 Feed Items per page in our web ui
    Use ‘ORDER BY CreatedDate DESC, ID DESC’
    Shows most recent feed items
    Handled efficiently internally
    For EntityFeeds, include ParentId = <record id> filter
    Efficient Filters
    ParentId, Id, FeedPostId
    Parent.Type (eg User, Account)
    CreatedDate
    2
    3
    4
  • 33. Yes
    No
    Pagination – 2 Algorithms
    Criteria
     10 pages or less
     Extra response size isn’t a performance concern
    Fixed Page List
    • Query with LIMIT page_size * 10(e.g., 200)
    • 34. Filter to required page in client
    Page by Page Iteration
    • Query with LIMIT Page Size + 1
    • 35. Display the first page (eg 20 rows)
    • 36. Compare the 20th and 21st rows’ CreatedDate to determine next query
  • Analytics
    SOQL + Feeds provides powerful mechanism to gather statistics
    For example, show top 10 users who receive the most posts
    SELECT Parent.Name, COUNT(id)
    FROM UserFeed
    WHERE Type IN ('TextPost', 'LinkPost', 'ContentPost')
    GROUP BY Parent.Name
    ORDER BY Count(id) DESC
    LIMIT 10
    But… analytic queries are expensive
  • 37. View the Results:
    • Just read from the custom object directly
    • 38. Efficient because only reading materialized results
    Analytics – A Better Way
    Reality: You’re most likely looking for trends so data changes slowly
    Store the Results
    • Periodically run scheduled apex job to update statistics
    • 39. Materialize data into a custom object
    Typically rematerialize data hourly or even daily
  • 40. Polling
    Best Practices:
    Avoid high polling rates
    Poll interval should be minutes not seconds
    Poll less often with user inactivity
    Be cautious of consuming user’s api limits
    …zzz
  • 41. Agenda
    Fundamental Concepts
    Core API Entities
    Groups
    Chatter Data Model
    Patterns
    Sample App: Post via Apex and Visualforce
    Demo: Twitter Chatter Integration
    Recommended Reading
  • 42. Post to Chatter via Apex and VisualforceCarter Thaxton, Developer
  • 43. Agenda
    Fundamental Concepts
    Core API Entities
    Groups
    Chatter Data Model
    Patterns
    Sample App: Post via Apex and Visualforce
    Demo: Twitter Chatter Integration
    Recommended Reading
  • 44. Twitter Chatter IntegrationAnjali Joshi, Partner Timba Software
  • 45. Agenda
    Fundamental Concepts
    Core API Entities
    Groups
    Chatter Data Model
    Patterns
    Sample App: Twitter Chatter Integration
    Recommended Reading
  • 46. Recommended Reading
    Chatter Code Recipes
    http://wiki.developerforce.com/index.php/Chatter_Code_Recipes
    Chatter Entity Relationship Diagram
    http://www.salesforce.com/us/developer/docs/api/Content/sforce_api_erd_chatter.htm
    Chatter Development Discussion Board
    http://community.salesforce.com/t5/Chatter-Development/bd-p/chatter
  • 47. Q&A
  • 48. 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!
  • 49. GetYour Whole Company on
    for Free!
    Visit the
    Campground
    to learn
    how
  • 50. 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
  • 51. Remember. . .
    • Check Chatter for additional session information
    • 52. Get your developer Workbooks and Cheat Sheets in the Force.com Zone
    • 53. Visit for more information related to this topic
    Don’t forget the survey!