df13 cory cowgill_theater_session_mobile_app_field_service

25
Case Study: Building a Mobile App for Field Service Cory Cowgill The Warranty Group Salesforce Analyst & Force.com MVP @corycowgill

Upload: cory-cowgill

Post on 07-Nov-2014

401 views

Category:

Technology


0 download

DESCRIPTION

Mobile Field Service Theater Session. Video of App can be found here: http://www.youtube.com/watch?v=ioza4xkWAGs&feature=share&list=UUcMYJov2x-oTmyxmCqB3lrw&index=1

TRANSCRIPT

Page 1: Df13 cory cowgill_theater_session_mobile_app_field_service

Case Study: Building a Mobile App for Field ServiceCase Study: Building a Mobile App for Field Service

Cory Cowgill

The Warranty Group

Salesforce Analyst & Force.com MVP

@corycowgill

Page 2: Df13 cory cowgill_theater_session_mobile_app_field_service

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 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 any litigation, risks associated with completed and any 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 and in our quarterly report on Form 10-Q for the most recent fiscal quarter. These 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.

Page 3: Df13 cory cowgill_theater_session_mobile_app_field_service

Agenda Mobile Application Case Study Overview

• Service Cloud and Platform Features

• Quick Intro to Mobile Architecture

• Live Demonstration – Tap to Case

Application Functionality and Code Deep Dive• Mobile UI with jQuery Mobile

• Salesforce Mobile SDK for Security & REST API Access

• NFC Phonegap Plugin for Serial Number Scanning

• HTML5 Canvas for Client Signature Capture

• Camera Access for Case Documentation

• Chatter API for Social Feeds on Cases

Page 4: Df13 cory cowgill_theater_session_mobile_app_field_service

Tap To Case

A complete application for mobile field service agents.

Page 5: Df13 cory cowgill_theater_session_mobile_app_field_service

Salesforce.com Solution

Case ManagementCTI IntegrationDispatch & SchedulingService Agreements (Entitlements)Social Feeds

Security Authentication & AuthorizationREST API Access

Page 6: Df13 cory cowgill_theater_session_mobile_app_field_service

Quick Intro – Hybrid Mobile Architecture HTML5 & Javascript Based

• Allows developers to reuse existing

skillsets.

Allows access to device API• Provides greater access to device

hardware via PhoneGap plugins.

Trade Off• Application performance will not be

as quick as purely native

applications.

Page 7: Df13 cory cowgill_theater_session_mobile_app_field_service

Demonstration Tap To Case

• HTML5 Hybrid App

• Android (NFC)

• Mobile Field Service

Page 8: Df13 cory cowgill_theater_session_mobile_app_field_service

Mobile UI with jQuery Mobile

Themes & Styling

Navigation• Single Page

• Multiple Page

• Sidepanel

UI Elements• Content Sections (DIV w/ Data-Role)

• Buttons

• Lists

• Effects

Page 9: Df13 cory cowgill_theater_session_mobile_app_field_service

Mobile UI with jQuery Mobile Code

Page 10: Df13 cory cowgill_theater_session_mobile_app_field_service

Salesforce Mobile SDK – Security & OAuth

Page 11: Df13 cory cowgill_theater_session_mobile_app_field_service

Salesforce Mobile SDK – Query, Insert Case Data

Force TK Client Query & Insert DataforcetkClient.query("Select Id, CaseNumber, Description, Status, Subject, Priority, ContactId, Contact.Name, Contact.Email, Contact.Phone, Account.Name, AccountId, Account.BillingStreet, Account.BillingCity, Account.BillingState, Account.BillingPostalCode, Device__c, Device__r.Name, Device__r.Model__c, Device__r.Serial_Number__c, (Select Id, Subject, StartDateTime from Events order by StartDateTime limit 1 ),(Select Id, Name, Quantity__c, Part__r.Name from Case_Parts__r) from Case",onSuccessSfdcCases, onErrorSfdc);

Force TK Security & Session Management

Page 12: Df13 cory cowgill_theater_session_mobile_app_field_service

NFC Phonegap Plugin Register NFC Listener

On NFC Read Event - Process Case Query

Page 13: Df13 cory cowgill_theater_session_mobile_app_field_service

HTML5 Canvas for Client Signature Capture Create a Canvas Element

On Touch Events Draw the Signature

Page 14: Df13 cory cowgill_theater_session_mobile_app_field_service

HTML5 Canvas for Client Signature Capture Capture Signature Content in JavaScript for Upload

Page 15: Df13 cory cowgill_theater_session_mobile_app_field_service

Camera Access for Case Documentation On Camera Button Link

Capture the Image Content Returned

Page 16: Df13 cory cowgill_theater_session_mobile_app_field_service

Social API – Chatter Feeds Query Query Chatter Records

function pullCaseChatter(){

forcetkClient.query("Select c.Id, c.CreatedBy.Name, c.CreatedById, c.CreatedDate, c.Body, (Select Id, FeedItemId, ParentId, CreatedById, CreatedBy.Name, CreatedDate, CommentBody, InsertedById, CommentType, RelatedRecordId From FeedComments),(Select Id, FeedItemId, FieldName, OldValue, NewValue From FeedTrackedChanges) From CaseFeed c where ParentId = '" + selectedCase.Id + "'", onSuccessSfdcCaseFeed, onErrorSfdc); }

Page 17: Df13 cory cowgill_theater_session_mobile_app_field_service

Social API – Chatter Feeds Display Display in A Collapsible jQuery Mobile DIV

Page 18: Df13 cory cowgill_theater_session_mobile_app_field_service

Putting it all together

Page 19: Df13 cory cowgill_theater_session_mobile_app_field_service

Additional Resources

Developer Force• http://developer.force.com

• http://wiki.developerforce.com/page/

Developing_Mobile_Applications_That_Support_Near_Field_Communication_(N

FC)

GitHub• https://github.com/corycowgill/MobileFieldServiceApp

Salesforce Mobile Gallery• http://www2.developerforce.com/mobile/gallery

Page 20: Df13 cory cowgill_theater_session_mobile_app_field_service
Page 21: Df13 cory cowgill_theater_session_mobile_app_field_service
Page 22: Df13 cory cowgill_theater_session_mobile_app_field_service

Slide parts

Page 23: Df13 cory cowgill_theater_session_mobile_app_field_service

Slide parts

Page 24: Df13 cory cowgill_theater_session_mobile_app_field_service

Slide parts

Page 25: Df13 cory cowgill_theater_session_mobile_app_field_service

Slide parts