Integrating Chatter with Cloud Productivity Tools

Preview:

DESCRIPTION

 

Citation preview

Integrating Chatter with Cloud

Productivity Tools

Patterns for Social Success

Michael Topalovich, Delivered Innovation, CTO

@topalovich

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

product or service availability, 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, new products and services, 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 l itigation, 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-Q for the most recent fiscal quarter ended July 31, 2012. This

documents and others containing important disclosures 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 presentations, 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.

michael topalovich delivered innovation @topalovich @DICloudApps

Design Pattern: RSS

Design Pattern: Email

Design Pattern: Web Hooks / Callbacks

Challenge: We don’t own these systems. It’s our job to connect the pieces.

Design Patterns: Force.com

Callout Interface

Listener Interface

Email Handler

RSS Interface

Business Logic

Exception Handling

Serialization + Parsing

Trigger Helper

VisualForce Controller

Scheduling Helper

Helper

Interfaces

Core Logic

Orchestration

Service Interfaces • Web Services, RSS, SMTP

Cloud Productivity Tools • GitHub, Basecamp, ZenDesk

Orchestration • VisualForce Controllers, Triggers, Scheduling

Core Logic • Business Rules, Utility Classes

Chatter • Chatter Feed Writers

Callout Interface

Listener Interface

Email Handler

RSS Interface

Business Logic

Exception Handling

Serialization + Parsing

Trigger Helper

VisualForce Controller

Scheduling Helper

Helper

Callout Interface

Listener Interface

Email Handler

RSS Interface

Callout Interface

Listener Interface

Email Handler

RSS Interface

Callout Interface • SOAP

• REST

Callout Interface

Listener Interface

Email Handler

RSS Interface

Listener Interface • Simple web service classes for webhooks / callbacks

Callout Interface

Listener Interface

Email Handler

RSS Interface

Email Handler • Apex Email Services

Callout Interface

Listener Interface

Email Handler

RSS Interface

RSS Interface • RSS Feed Reader Class

Callout Interface

Listener Interface

Email Handler

RSS Interface

Business Logic

Exception Handling

Serialization + Parsing

Trigger Helper

VisualForce Controller

Scheduling Helper

Helper

Business Logic

Exception Handling

Serialization + Parsing

Business Logic

Exception Handling

Serialization + Parsing

Business Logic • End-to-End Process Management

• Business Rules

• Configuration Management

• Utility Classes

Business Logic

Exception Handling

Serialization + Parsing

Serialization + Parsing • XML Serialization / Deserialization

• JSON Serialization / Deserialization

Business Logic

Exception Handling

Serialization + Parsing

Exception Handling • Error handling and messages

• Logging and notifications

Callout Interface

Listener Interface

Email Handler

RSS Interface

Business Logic

Exception Handling

Serialization + Parsing

Trigger Helper

VisualForce Controller

Scheduling Helper

Helper

Trigger Helper

VisualForce Controller

Scheduling Helper

Trigger Helper

VisualForce Controller

Scheduling Helper

Trigger Helper • Abstraction of Trigger logic

• Invoke actions before / after DML operations

• Process Trigger list / map to perform operations

Trigger Helper

VisualForce Controller

Scheduling Helper

VisualForce Controller • Process events and actions to perform operations

• Data input methods

• Navigation methods

• User interaction

Trigger Helper

VisualForce Controller

Scheduling Helper

Scheduling Helper • Implement Schedule interface

• Process integration events at configured polling intervals

core functions

API Concepts – Chatter Feeds

UserFeed

CollaborationGroupFeed

[Object]Feed

• AccountFeed

• OpportunityFeed

• MyCustomObject__Feed

A FeedItem represents an entry in the feed, including text posts, link posts,

and content posts.

FeedItem – Supported calls

create()

delete()

describeSObjects()

getDeleted()

getUpdated()

query()

retrieve()

search()

FeedItem – Key Fields

ParentId

• ID of the object type to which the FeedItem is related

Type

• The type of FeedItem

– TextPost - a direct text entry on a feed

– LinkPost - a URL posting on a feed

– ContentPost - an uploaded file on a feed

Body

• The message that appears in the feed

Source: SOAP API Developer’s Guide

FeedItem – LinkPost and ContentPost

LinkPost

• LinkURL - The URL of a LinkPost

ContentPost

• ContentData - The file uploaded to the feed

• ContentDescription - The description of the file

• ContentFileName – The name of the file uploaded to the feed

– Setting ContentFileName automatically sets Type to ContentPost

Source: SOAP API Developer’s Guide

Key Technical Considerations

Limitations

People and records you can follow: 500

Groups you can join: 100

Groups in your organization: 10,000

Mentions in a single post or comment: 25

Characters in single post or comment: 1,000

File attachment size: 2 GB

Source: Salesforce Help

eliminate information silos

find balance

T.M.I.

code samples

Adding a Text Post

FeedItem post = new FeedItem();

post.ParentId = oId;

post.Body = 'Enter post text here';

insert post;

Source: developerforce.com Chatter Code Recipes

Adding a Content Post

FeedItem post = new FeedItem();

post.ParentId = oId;

post.Body = 'Enter post text here';

post.ContentData = base64EncodedFileData;

post.ContentFileName = 'sample.pdf';

insert post;

Source: developerforce.com Chatter Code Recipes

Adding a Link Post

FeedItem post = new FeedItem();

post.ParentId = oId

post.Body = 'Enter post text here';

post.LinkUrl = 'http://www.someurl.com';

insert post;

Source: developerforce.com Chatter Code Recipes

next steps

ideas.salesforce.com

#askforce

#chatter

#forcedotcom

#salesforce

DELIVEREDINNOVATION.COM

Michael Topalovich

CTO, Delivered Innovation

@topalovich

Recommended