lightning week - paris dug

66
Lightning Workshop Paris – February 26 th Frédéric Daurelle Lead Solution Engineer, Platform Specialist

Upload: paris-salesforce-developer-group

Post on 16-Jul-2015

152 views

Category:

Technology


0 download

TRANSCRIPT

Page 1: Lightning week - Paris DUG

Lightning WorkshopParis – February 26th

Frédéric DaurelleLead Solution Engineer, Platform Specialist

Page 2: Lightning week - Paris DUG

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, 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.comproducts, 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 quarter ended July 31, 2011. This document 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: Lightning week - Paris DUG

Agenda

§ Welcome  &  Kick-­off  (15’)§ Salesforce  Lightning  Overview  presentation  &  Demo  (30’)§ Hands-­on  Tutorials:  (90’)

– Lightning Connect,  Lightning  Components,  Lightning App Builder

§ Next  Steps  (15’)§ Networking  &  Raffle   (15’)

Page 4: Lightning week - Paris DUG

Create a new Spring ’15 DE Org

Please  use  this  link  to  create  a  new  Spring  ‘15  Developer  Edition  (DE)  org  for  the  tutorials

(You  only  need  one)

http://bit.do/lightningdays

Page 5: Lightning week - Paris DUG

Be Interactive

Page 6: Lightning week - Paris DUG

http://developer.salesforce.com/lightning#golightningfast

LIGHTNING WEEKMarch 9 – March 13

100+ Dev Groups Worldwide

Get Hands-On

Meet the Experts

Page 7: Lightning week - Paris DUG

Lightning Overview

Page 8: Lightning week - Paris DUG

The App Revolution

Apps define:• How customers engage with you• How your employees work

140B mobile app downloads

80% Fortune100 have consumer mobile apps Build  apps  faster

Page 9: Lightning week - Paris DUG

Organizations Struggle To Build Custom Mobile Apps

Mobile apps are critical

Mobile apps

deployed

App GapLess than½ have deployed

apps Complexity of form factors

Limited number of developersMultiple operating systems

Multiple platforms

Page 10: Lightning week - Paris DUG

Traditional app development is slow

Custom development

Connect to Data Sources

Code Business Processes

Build App

user iteration

user iteration

Developers can not keep up with Business needs

Page 11: Lightning week - Paris DUG

Salesforce1 Lightning: The Fastest Way To Build AppsNew release of the Salesforce1 Platform

Page 12: Lightning week - Paris DUG

You Are Using Lightning Now!

Salesforce1 is a Lightning App

§ Responsive UI across devices§ Component-based Apps§ Highly Extensible &

Customizable§ Available Everywhere

Page 13: Lightning week - Paris DUG

Salesforce1 Lightning

Connect Process Builder

A complete suite for everyone to build killer apps fast!

App Builder

Component Framework

Page 14: Lightning week - Paris DUG

Introducing Lightning Connect

Connect Process Builder

App Builder

Component Framework

A complete suite for everyone to build killer apps fast!

Page 15: Lightning week - Paris DUG

Current Integration Approaches: Limited or Overly Complex

Manual  File  Load Point-­to-­Point Enterprise  Service  BusFTP

One-­off  EventsData  can’t  be  updated

Data  quickly  goes  stale

Infrequent  UpdatesData  is  copied

Data  often  inaccurate

InflexibleMonths  to  build

Expensive  to  build  and  maintain

ComplexRequires  special  skills

Several  months  to  build

Page 16: Lightning week - Paris DUG

Lightning Connect ≠ ETLSalesforce1 Lightning Connect is a data federation / virtualization solution

• Real-time access to external data• Data access is by reference• Data is formatted into Salesforce objects• Supports open-standard data-access protocol

HTTPS  Request

HTTPS  ResponseData

Sources

Lightning  Connect  Data  Virtualization

Object  UI Apex VF  

Page SOQL SOSL ReportAnalytics API

Salesforce  Environment

Salesforce  Objects

Page 17: Lightning week - Paris DUG

Salesforce1 Lightning ConnectUnlock Your Back-Office Data

Fast  Integration  in  minutesAccess to external data with point-and-click

Real-­time Incorporate external data by reference into Salesforce in real-time, not copying dataNot storing data alleviates data residency concerns

ExtensibleThe  full  power  of  Salesforce1  Platform  behind  external  dataAvailable in DE orgs; add-on license required in Production orgs

Page 18: Lightning week - Paris DUG

Introducing Lightning Process Builder

Connect Process Builder

App Builder

Component Framework

Page 19: Lightning week - Paris DUG

Lightning Process BuilderAutomate business faster

PowerfulCreate processes using visual layoutManage multiple process paths in ONE placeCollaborate with business ownersEasyPoint-and-click developmentCreate “headless flows”Replace many basic Apex triggersExtensibleEvery process instantly becomes a RESTful end-point

Page 20: Lightning week - Paris DUG

Introducing Lightning Components

Connect Process Builder

App Builder

Component Framework

Page 21: Lightning week - Paris DUG

Component Frameworks Are The FutureAll leading platform companies are investing in component frameworks

GooglePolymer

FacebookReact

SalesforceLightning

TwitterFlight

MozillaBrick

Page 22: Lightning week - Paris DUG

Standard ComponentsBuilt by Salesforce

Custom charts Data entry tools Custom data layout Dynamic maps

Left  nav Publisher  bar Feed  items

Tasks

Sliders Multi-­view  charts

Pass/FailCustom ComponentsBuilt by customer developers

AppExchange ComponentsBuilt by Partners (25+ today)

Lightning Component Framework

Page 23: Lightning week - Paris DUG

Introducing Lightning App Builder

Connect Process Builder

App Builder

Component Framework

Page 24: Lightning week - Paris DUG

Lightning App Builder

Drag & DropBuild with standard, custom & partner Lightning Components

Any  DeviceDesign  apps  for  every  screen  from  one  canvas

Now anyone can build apps faster

Page 25: Lightning week - Paris DUG

Demo:Lightning Overview

Page 26: Lightning week - Paris DUG

Hands-On

Page 27: Lightning week - Paris DUG

Connect Process Builder

App Builder

Component Framework

Page 28: Lightning week - Paris DUG

What External Data Sources are Supported?Any Data Sources that can publish data in Open Data (OData) 2.0

protocol

▪ Commercial Packages– SAP Netweaver Gateway– Microsoft SQL Server, Dynamics CRM/NAV,

Azure Table Services– IBM Websphere exTreme Scale– Heroku Connect External Objects

▪ DIY Data Producer– .Net WCF Data Services, Java (Apache Olingo, odata4j), NodeJS

▪ Many more via partners– Dell Boomi, Informatica, Jitterbit, MuleSoft, Progressive, SoftwareAG

Page 29: Lightning week - Paris DUG

External Objects Work Like Custom Objects

✓ Tabs✓ List Views✓ Detail Pages✓ Chatter Feeds✓ Visualforce pages with standard or custom controllers✓ Apex SObject types✓ REST/SOAP API access✓ SOQL and SOSL queries from Apex or API✓ Available on Salesforce1 Mobile Platform

Page 30: Lightning week - Paris DUG

Other External Object Limitations

✗ Formula and Roll-up Summary Fields ✗ Triggers, Workflow, Approvals, Process ✗ Validation Rules✗ Field History Tracking✗ Notes, Attachments

Page 31: Lightning week - Paris DUG

Lightning Connect Roadmap

▪ Read-only access is GA in Spring ‘15 ▪ Pilot in Spring ’15

– Read/write capability– Real-time cross-org access– Apex Connector library to develop custom connectors

▪ FUTURE*▪ OData 4.0

– Support for triggers ▪ Custom Reports for External Objects

* Safe Harbor

Page 32: Lightning week - Paris DUG

Tutorial: Lightning Connect

bit.ly/lightning-­connect-­tutorial

Page 33: Lightning week - Paris DUG
Page 34: Lightning week - Paris DUG

Connect Process Builder

App Builder

Component Framework

Page 35: Lightning week - Paris DUG

Process BuilderNext Generation Workflow

Multiple  “Rules”  in  1  processMore  FlexibilityGraphical  Interface

Workflow  Rules

New  Actions

Page 36: Lightning week - Paris DUG

With Process Builder You Can….

✓ Create a record (related OR unrelated to the criteria object)✓ Update fields on ANY related record✓ Launch a trigger-ready Flow✓ Send an email✓ Post to Chatter✓ Submit for approval (or trigger existing approval process)✓ Execute Apex Code

Page 37: Lightning week - Paris DUG

Process Builder Limitations

✗ Create Tasks ✗ Send Outbound Messages

✗ Design Screen Flows

Use  Workflow  Rules

Use  Visual  Workflow

Page 38: Lightning week - Paris DUG

Why does it say “Flow” sometimes?

▪ Behind the scenes, a Process Builder process is a Flow – Same engine as Visual Workflow

▪ Surfaces in▪ End user error messages▪ Packaging▪ Maybe others…

Page 39: Lightning week - Paris DUG

Tutorial: Process Builder

http://developerforce.github.io/lightning-­process-­builder-­tutorial/

Page 40: Lightning week - Paris DUG
Page 41: Lightning week - Paris DUG

Connect Process Builder

App Builder

Component Framework

Page 42: Lightning week - Paris DUG

What can I build with Lightning Components?

§ Lightning Component Tabs for Salesforce1 Mobile App (BETA)– Single or multiple “page” apps available in “Stage Left”– implements=“force:appHostable”– This is what you’re building in the tutorial!

§ Custom Components for Lightning App Builder (PILOT)– Components designed for ease-of-use via tools, available in the palette– implements=“flexipage:availableForAllPageTypes”– You’ll see this in the next section!

Page 43: Lightning week - Paris DUG

What else?

§ Lighting Applications– Full-page Lighting Component-based applications– URL-addressable

§ Lightning Extensions (Limited Pilot)– Override the default components with custom components

Page 44: Lightning week - Paris DUG

Lightning Components Handle User Interactions

Configure Attributes

Listen for Events

Fire Events

• Data updated• Screen tapped• Another component

changed• Network offline

• Set color• Set object• Get user

• Record saved• List scrolled• Save offline• Color changed

Page 45: Lightning week - Paris DUG

Lightning Components Improve Developer Productivity

APP or COMPONENT BUNDLE

Definition : html

Controller : js

Helper : js

EventHandler : js

Style : css

Component(s)

Cmp1 Cmp3

Cmp2 App1

App1 App2

Cmp2 Cmp2

Package 1 Package 2§ Components are bundles of

resources§ Bundles enable reusability,

share ability, and extensibility§ Components can be used to

compose apps

Page 46: Lightning week - Paris DUG

Visualforce and Lightning ComponentsFull FAQ at: https://developer.salesforce.com/page/Lightning_FAQ

§ What’s the difference? – Visualforce components are page-centric and most of the work is done

on the server. Lightning is designed from the component up, rather than having the concept of a page as its fundamental unit. Lightning Components are client-side centric, which makes them more dynamic and mobile friendly.

§ Where can I use what?– Currently you can only use Lightning Components in the Salesforce1

Mobile App or a standalone app, not in the Salesforce desktop UI.– Currently you can use Visualforce inside a Lightning App, but not a

Lightning Component inside Visualforce.

Page 47: Lightning week - Paris DUG

Tutorial: Lightning

Components

http://developerforce.github.io/lightning-­components-­tutorial/index.html

Page 48: Lightning week - Paris DUG
Page 49: Lightning week - Paris DUG

Connect Process Builder

App Builder

Component Framework

Page 50: Lightning week - Paris DUG

What can I build?

§ Single Page Applications– Drill down to existing standard pages– Expose Global Actions for more interactivity

§ Dashboard-style Applications– Sales Leaderboard

§ “Point” Applications to solve a particular task– Upload expense receipt

Page 51: Lightning week - Paris DUG

Apps in Salesforce1 Mobile

Page 52: Lightning week - Paris DUG

What’s in an App?

LightningPageLightning

Components

Global  Actions

Page 53: Lightning week - Paris DUG

Tutorial: Lightning App Builder

http://developerforce.github.io/lightning-­app-­builder-­tutorial/

Page 54: Lightning week - Paris DUG
Page 55: Lightning week - Paris DUG

Next Steps

Page 56: Lightning week - Paris DUG

Lightning Deep Dive Webinars• Lightning  App  Builder  March  18,  2015  10am  PSThttps://developer.salesforce.com/events/webinars/Lightning-­App-­Builder

• Lightning  Component  FrameworkMarch  26,  2015  10am  PSThttps://developer.salesforce.com/events/webinars/Lightning-­Component-­Framework

• Lightning  Process  BuilderApril  2,  2015  10am  PSThttps://developer.salesforce.com/events/webinars/Lightning-­Process-­Builder

• Lightning  ConnectApril  9,  2015  10am  PSThttps://developer.salesforce.com/events/webinars/Lightning-­Connect

Page 57: Lightning week - Paris DUG

Want to build components? Check out the docs!

https://login.salesforce.com/auradocs§ Login with an org that has Lightning enabled§ Component, app, interface, and event reference guide§ Reference JavaScript API§ Samplecode

Page 58: Lightning week - Paris DUG
Page 59: Lightning week - Paris DUG

Go to success.salesforce.com, Help & Training• Search for the Creating  Lightning  Components course

Page 60: Lightning week - Paris DUG

Questions?

Success Community Chatter Groups ▪ Official: Lightning Connect▪ Official: Salesforce Workflow Automation

▪ For questions about Lightning Process Builder▪ Official: Lightning App Builder

Page 61: Lightning week - Paris DUG

Thank you for attending Lightning Day! We hope you enjoyed today’s workshop. We would appreciate your feedback regarding the overall event. Please take a few minutes to fill out our Lightning Day survey and be entered for the chance to win our raffle prize.

Lightning Day Workshop Survey.

For more information on our upcoming Lightning Dev Week, please visit:https://developer.salesforce.com/developer-week

For additional training, check out: Salesforce University - Creating Lightning Components Training

Trailhead - developer.salesforce.com/trailhead

Page 62: Lightning week - Paris DUG

Thank You

Page 63: Lightning week - Paris DUG

Appendix

http://developerforce.github.io/lightning-­components-­tutorial/index.html

Page 64: Lightning week - Paris DUG

Process Builder Considerations▪ Process Builder is a client to Visual Workflow. It will respect both Apex Governor Limits and Process

Limits. – Details on Limits:

https://help.salesforce.com/HTViewHelpDoc?id=process_limits.htm&language=en_US

▪ Processes can evaluate records up to five times in a single transaction if another process, workflow rule, or flow updates the record in the same transaction.

▪ If you create processes to replace any workflow rules, make sure you delete those workflow rules when you activate the equivalent processes.

▪ Processes can evaluate a record anytime a record is saved or created. However, processes that are created after records are saved don’t evaluate those records retroactive

▪ Picklist fields are evaluated as text fields in the Process Builder.

▪ Full Details on Process Builder Considerations: https://help.salesforce.com/HTViewHelpDoc?id=process_considerations.htm&language=en_US

Page 65: Lightning week - Paris DUG

Process Builder: What’s New in Spring 15?

▪ Create versions of a process▪ Trigger a process multiple times in a single transaction ▪ Determine whether specific fields changed▪ Customize condition logic in process builder▪ Call Apex method from a process▪ Updated and more efficient UI

Page 66: Lightning week - Paris DUG

Lightning Connect: What’s happening behind the scenes?§ Service Document - lists the available entity collections (in relational

database terms, tables, in Force.com these would be objects) : http://orderdb.herokuapp.com/orders.svc/

§ Metadata - detailed schema for the data source: https://orderdb.herokuapp.com/orders.svc/$metadata

§ Payment data: https://orderdb.herokuapp.com/orders.svc/Payments

§ An individual payment record:§ https://orderdb.herokuapp.com/orders.svc/Payments(2)