28
Designing Salesforce Mobile Workflow Using Force.com (Apex) Triggers Developers Track Paolo Bergamo: salesforce.com

Designing Mobile Workflow Using Force.com (Apex) Triggers

Embed Size (px)

DESCRIPTION

Looking for an efficient mobile workflow? It's time to reach new heights in mobile productivity using Force.com (Apex) triggers with salesforce.com's mobile application. Join us to learn how to leverage picklists, booleans, and other fields to mobile-enable advanced tasks such as calculating an invoice total and generating a quote directly from a mobile device.

Citation preview

Page 1: Designing Mobile Workflow Using Force.com (Apex) Triggers

Designing Salesforce Mobile Workflow Using Force.com (Apex) Triggers

Developers Track

Paolo Bergamo: salesforce.com

Page 2: Designing Mobile Workflow Using Force.com (Apex) Triggers

Safe HarborSafe 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.

Page 3: Designing Mobile Workflow Using Force.com (Apex) Triggers

Agenda

Overview of Salesforce Mobile

Why choose Salesforce Mobile and demo

Examples of Force.com triggers to be used with

mobile

Page 4: Designing Mobile Workflow Using Force.com (Apex) Triggers

Overview of Salesforce Mobile

Page 5: Designing Mobile Workflow Using Force.com (Apex) Triggers

In The Future…

Salesforce apps all in one place• Suite of mobile apps available at

m.salesforce.com

• Distributed through app stores

• Purpose-built apps solve specific problems

• Full integration with Salesforce

• Easy to find, download and use

Page 6: Designing Mobile Workflow Using Force.com (Apex) Triggers

Salesforce MobileChatter Mobile

Mobile Products Today

Page 7: Designing Mobile Workflow Using Force.com (Apex) Triggers

Instant access to customer data

Update records between appointments

Improve data and pipeline visibility

Salesforce Mobile: Take CRM Anywhere

Page 8: Designing Mobile Workflow Using Force.com (Apex) Triggers

Current Mobile Offerings

SALESFORCE MOBILE (Incl. in Unlimited Edition or $50/u/m add-on)

Standard Objects Custom Objects Content Library Full Management Console

Accounts

Contacts

Dashboards

Etc.

Proximity App

Expense Reporting

Visualforce pages

Etc.

MOBILE LITE (FREE for all editions)

Standard Objects Custom Objects Content Full Management Console

Accounts

Contacts

Dashboards

Etc.

Not Available Not Available Limited Configurability

Page 9: Designing Mobile Workflow Using Force.com (Apex) Triggers

Salesforce Mobile Demo

Page 10: Designing Mobile Workflow Using Force.com (Apex) Triggers

Write once, run everywhere

Crossplatform support

Security taken care of

Offline access

Ease of deployment and update

Salesforce Mobile: why?

Page 11: Designing Mobile Workflow Using Force.com (Apex) Triggers

Salesforce Mobile demo

Page 12: Designing Mobile Workflow Using Force.com (Apex) Triggers

Salesforce Mobile overview

Overview of the client• Basic navigation• Search / filter• Integration with the OS (Log a call, etc)• Dashboards and Visualforce Pages

Administration• Application update• What if the the device is lost or stolen

Page 13: Designing Mobile Workflow Using Force.com (Apex) Triggers

Salesforce Mobile and Triggers

Page 14: Designing Mobile Workflow Using Force.com (Apex) Triggers

Parent/Child creation is not supported offline

record ID missing

New Account

- New related contact

Page 15: Designing Mobile Workflow Using Force.com (Apex) Triggers

Offline Parent/Child creation: use case #1

Opportunity Line Item

Field1Field2

Pare

nt

Field1Field2

Ch

ild

Parent.Field1Parent.Field2Child.Field1Child.Field2H

elp

er

<make this pretty>

Page 16: Designing Mobile Workflow Using Force.com (Apex) Triggers

Offline Parent/Child creation: Solution #1

Use a “flattened” mirror object

Field1Field2

Pare

nt

Field1Field2

Ch

ild

Parent.Field1Parent.Field2Child.Field1Child.Field2H

elp

er

Page 17: Designing Mobile Workflow Using Force.com (Apex) Triggers

Offline Parent/Child creation: use case #2

Visit of a distributor to a store

Account

Visit January

QuestionnairerecordType #1

QuestionnairerecordType #2

Visit February

Visit March

QuestionnairerecordType #3

Page 18: Designing Mobile Workflow Using Force.com (Apex) Triggers

Offline Parent/Child creation: Solution #2

Create the parent object for next visit

Account

Visit Pending

Visit Completed

QuestionnairerecordType #1

New visit Pending

Page 19: Designing Mobile Workflow Using Force.com (Apex) Triggers

Approval process: use case

Manager needs to approve an object

Page 20: Designing Mobile Workflow Using Force.com (Apex) Triggers

Approval process: solution

Two different layouts

Start date# of days

Em

plo

yee L

ayou

t

Start date# of daysStatus

Man

ag

er

Layou

t

Page 21: Designing Mobile Workflow Using Force.com (Apex) Triggers

Approval process: credit card validation use case

Salesforce Mobile on Windows Mobile:peripherals integration

WM Peripherals Implementation Guide

New types of fields: MagneticStripe and BarCodeNew types of objects: AllowSignaturePictureUpload as a related object

Page 22: Designing Mobile Workflow Using Force.com (Apex) Triggers

Credit card information: solution

Let the server-side deal with validation

Credit Card company validation

Page 23: Designing Mobile Workflow Using Force.com (Apex) Triggers

Credit card information: solution

Let the server-side deal with validation and copy the field into an encrypted field, then lock the original record

Create credit card record(swipe)

- Lock record- Send email

with receipt- Trigger other

workflows

Signature capture (via stylus and touch screen)

Copy info to encrypted field

Mask CC info on original record

CC validation

Page 24: Designing Mobile Workflow Using Force.com (Apex) Triggers

Validation: use case

Complex validation rules that require (or not) apex code

New record

- Validation rules

- Apex Code

OK

Not OK

Confirm record

Send record back to device in edit mode

Page 25: Designing Mobile Workflow Using Force.com (Apex) Triggers

Summary

Page 26: Designing Mobile Workflow Using Force.com (Apex) Triggers

Agenda

Why use Salesforce Mobile– crossplatform runtime that offers offline capabilities

Examples of triggers– Offline creation

– Integration with peripherals

– Approvals

– Simple and complex validation rules

Salesforce Mobile offers a lot more!

Page 27: Designing Mobile Workflow Using Force.com (Apex) Triggers

Thank you!

Page 28: Designing Mobile Workflow Using Force.com (Apex) Triggers

How Could Dreamforce Be Better? Tell Us!

Log in to the Dreamforce app to submit

surveys for the sessions you attendedUse the

Dreamforce Mobile app to submit

surveysEvery session survey you submit is

a chance to win an iPod nano!

OR