SlideShare a Scribd company logo
Taking Flow to the Next Level with
Just Enough Code
​ Mary Pustejovsky
​ Solution Architect, Heller Consulting
​ @mpusto
​ 
​ Robert Strunk
​ Senior Developer, Coastal Cloud
​ @sf_tidbits
​ 
​ 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 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.
Safe Harbor
Mary Pustejovsky
Solution Architect
Robert Strunk
Senior Developer
​ Examples:
​  How do you style the Flow page?
​  How do you pass in lots of variables?
​  What if I want someone to add an attachment?
​  How do you determine where the Flow ends?
​ Visualforce and Apex to the rescue!
Flow is POWERFUL but has limits
Can’t I just do everything in Flow?
All Dressed Up with Some Place to Go
Altering the Flow appearance and starting with a specific record
Embed in VF page and open up possibilities!
Visualforce Example
How it renders
Visualforce Example
Upload Attachments from a Flow
How to allow users to upload an attachment within a Flow
GitHub Repo : http://bit.ly/1N3gOyZ
Create your controller and initialize your Flow.Interview member
Create your Controller
http://bit.ly/1N3gOyZ
Add variable to hold attachment parentId
Create your Controller
http://bit.ly/1N3gOyZ
Add variable to hold the attachment
Create your Controller
http://bit.ly/1N3gOyZ
Add method to perform upload
Create your Controller
http://bit.ly/1N3gOyZ
Set the controller attribute to your Apex controller
Create your Visualforce Page
Add your <flow:interview> tag
http://bit.ly/1N3gOyZ
Add a conditionally rendered outputPanel that holds the file upload markup
Create your Visualforce Page
http://bit.ly/1N3gOyZ
Finish Locations with Apex
How to send the user to a newly created record from a Flow
Change where the flow ends instead of starting again
What is a Finish Location?
Add a finish location attribute
Set a relative URL for a page
Setting a Finish Location – Starting Small
Create your own controller for added logic
--Finds the record ID and sets the page location
Setting a Finish Location – Thinking Bigger
Add the Flow
Getting the ID of the record
Use the ID to get the URL
Break up the pieces
Add the controller
Update the finish location
Update the Page
Thank you

More Related Content

PDF
Visualforce in Salesforce1: Optimizing your User Interface for Mobile
PDF
Using Visualforce in Salesforce1
PDF
Make Your Visualforce Pages Responsive
PDF
Salesforce1 for Developers
PDF
Salesforce1 UX Overview for ISVs and Partners
PPTX
Mini-Workshop: Responsive Web Design with Visualforce and Bootstrap
PPTX
Dreamforce 14 : Responsive Design with Visualforce and Twitter Bootstrap
PPTX
S1 and Visualforce Publisher Actions
Visualforce in Salesforce1: Optimizing your User Interface for Mobile
Using Visualforce in Salesforce1
Make Your Visualforce Pages Responsive
Salesforce1 for Developers
Salesforce1 UX Overview for ISVs and Partners
Mini-Workshop: Responsive Web Design with Visualforce and Bootstrap
Dreamforce 14 : Responsive Design with Visualforce and Twitter Bootstrap
S1 and Visualforce Publisher Actions

What's hot (20)

PPTX
Responsive Web Design with Visualforce
PPT
Chatter Publisher Actions and Salesforce1
PPT
Create Engaging Apps with Visualforce and Bootstrap
PDF
Salesforce1 Mobile Tips & Tricks for Admins
PDF
Intro to Building Mobile Apps with Salesforce1: No Code Required Webinar
PDF
Intro to Salesforce1 Mobile App Development Webinar
PPTX
JavaScript Integration with Visualforce
PDF
NgForce: A JS Library For Quickly Building Salesforce Apps Using AngularJS
PDF
Code live with kevin o'hara lwc oss dashboard
PPTX
Force.com Friday: Intro to Visualforce (May 8, 2015)
PDF
Salesforce Design System for Native Apps
PPTX
Careers In the Cloud: Take Your Developer Career to the Next Level!
PPTX
Automate Processes Visually with the Lightning Process Builder
PDF
Making External Web Pages Interact With Visualforce
PDF
Choreographed Animations with Salesforce's New Lightning Design System
PPTX
Apex for Admins: Get Started with Apex in 30 Minutes! (part 1)
PPTX
Preparing for Lightning: Replacing URL Hacks with Actions
PDF
Best Practices Leveraging Salesforce1
PPTX
Seamless Authentication with Force.com Canvas
PDF
Building Enterprise Apps Rapidly with Salesforce Mobile Packs Webinar
Responsive Web Design with Visualforce
Chatter Publisher Actions and Salesforce1
Create Engaging Apps with Visualforce and Bootstrap
Salesforce1 Mobile Tips & Tricks for Admins
Intro to Building Mobile Apps with Salesforce1: No Code Required Webinar
Intro to Salesforce1 Mobile App Development Webinar
JavaScript Integration with Visualforce
NgForce: A JS Library For Quickly Building Salesforce Apps Using AngularJS
Code live with kevin o'hara lwc oss dashboard
Force.com Friday: Intro to Visualforce (May 8, 2015)
Salesforce Design System for Native Apps
Careers In the Cloud: Take Your Developer Career to the Next Level!
Automate Processes Visually with the Lightning Process Builder
Making External Web Pages Interact With Visualforce
Choreographed Animations with Salesforce's New Lightning Design System
Apex for Admins: Get Started with Apex in 30 Minutes! (part 1)
Preparing for Lightning: Replacing URL Hacks with Actions
Best Practices Leveraging Salesforce1
Seamless Authentication with Force.com Canvas
Building Enterprise Apps Rapidly with Salesforce Mobile Packs Webinar
Ad

Similar to Taking Flow to the Next Level with Just Enough Code (20)

PPTX
Go with the Flow: Automating Business Processes with Clicks
PDF
Introduction to Flow
PDF
The Business of Flow - Point and Click Workflow Applications
PDF
Building Dynamic UI with Visual Workflow Runtime API
PDF
Visual Workflow Overview
PDF
Know How to Flow - Kelly Hardebeck
PDF
A Developer's Guide to Visual Workflow
PDF
Marketing Effectively to Drive Adoption and Compliance Using Flow - Jeremiah ...
PPTX
Flows in the Service Console, Gotta Go with the Flow! by Duncan Stewart
PDF
Force.com Friday: Intro to Force.com
PDF
Building Complex Traversing & Branching Apps Using Visual Workflows and Apex
PPT
Salesforce Integration
PPTX
Process Builder and Flow: An Admin's Trigger by Rich Englhard
PDF
A Pocket Guide to Process Builder, Flows, and Triggers
PPSX
Process Automation Showdown Session 1
PDF
Five Developer Tips Every Admin Needs To Know
PDF
Automate All The Things with Flow
PDF
Fun with Flows - Terry Cole
PDF
Introduction to Visualforce
PPTX
Salesforce World Tour Amsterdam: Guide your users through a process using path
Go with the Flow: Automating Business Processes with Clicks
Introduction to Flow
The Business of Flow - Point and Click Workflow Applications
Building Dynamic UI with Visual Workflow Runtime API
Visual Workflow Overview
Know How to Flow - Kelly Hardebeck
A Developer's Guide to Visual Workflow
Marketing Effectively to Drive Adoption and Compliance Using Flow - Jeremiah ...
Flows in the Service Console, Gotta Go with the Flow! by Duncan Stewart
Force.com Friday: Intro to Force.com
Building Complex Traversing & Branching Apps Using Visual Workflows and Apex
Salesforce Integration
Process Builder and Flow: An Admin's Trigger by Rich Englhard
A Pocket Guide to Process Builder, Flows, and Triggers
Process Automation Showdown Session 1
Five Developer Tips Every Admin Needs To Know
Automate All The Things with Flow
Fun with Flows - Terry Cole
Introduction to Visualforce
Salesforce World Tour Amsterdam: Guide your users through a process using path
Ad

More from Salesforce Developers (20)

PDF
Sample Gallery: Reference Code and Best Practices for Salesforce Developers
PDF
Maximizing Salesforce Lightning Experience and Lightning Component Performance
PDF
Local development with Open Source Base Components
PPTX
TrailheaDX India : Developer Highlights
PDF
Why developers shouldn’t miss TrailheaDX India
PPTX
CodeLive: Build Lightning Web Components faster with Local Development
PPTX
CodeLive: Converting Aura Components to Lightning Web Components
PPTX
Enterprise-grade UI with open source Lightning Web Components
PPTX
TrailheaDX and Summer '19: Developer Highlights
PDF
Live coding with LWC
PDF
Lightning web components - Episode 4 : Security and Testing
PDF
LWC Episode 3- Component Communication and Aura Interoperability
PDF
Lightning web components episode 2- work with salesforce data
PDF
Lightning web components - Episode 1 - An Introduction
PDF
Migrating CPQ to Advanced Calculator and JSQCP
PDF
Scale with Large Data Volumes and Big Objects in Salesforce
PDF
Replicate Salesforce Data in Real Time with Change Data Capture
PDF
Modern Development with Salesforce DX
PDF
Get Into Lightning Flow Development
PDF
Integrate CMS Content Into Lightning Communities with CMS Connect
Sample Gallery: Reference Code and Best Practices for Salesforce Developers
Maximizing Salesforce Lightning Experience and Lightning Component Performance
Local development with Open Source Base Components
TrailheaDX India : Developer Highlights
Why developers shouldn’t miss TrailheaDX India
CodeLive: Build Lightning Web Components faster with Local Development
CodeLive: Converting Aura Components to Lightning Web Components
Enterprise-grade UI with open source Lightning Web Components
TrailheaDX and Summer '19: Developer Highlights
Live coding with LWC
Lightning web components - Episode 4 : Security and Testing
LWC Episode 3- Component Communication and Aura Interoperability
Lightning web components episode 2- work with salesforce data
Lightning web components - Episode 1 - An Introduction
Migrating CPQ to Advanced Calculator and JSQCP
Scale with Large Data Volumes and Big Objects in Salesforce
Replicate Salesforce Data in Real Time with Change Data Capture
Modern Development with Salesforce DX
Get Into Lightning Flow Development
Integrate CMS Content Into Lightning Communities with CMS Connect

Recently uploaded (20)

PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PPTX
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
PPTX
Programs and apps: productivity, graphics, security and other tools
PPTX
Understanding_Digital_Forensics_Presentation.pptx
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PDF
Review of recent advances in non-invasive hemoglobin estimation
PDF
Unlocking AI with Model Context Protocol (MCP)
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PDF
Encapsulation_ Review paper, used for researhc scholars
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PDF
Machine learning based COVID-19 study performance prediction
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PDF
Approach and Philosophy of On baking technology
PDF
Network Security Unit 5.pdf for BCA BBA.
PPTX
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
Advanced methodologies resolving dimensionality complications for autism neur...
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
Programs and apps: productivity, graphics, security and other tools
Understanding_Digital_Forensics_Presentation.pptx
The Rise and Fall of 3GPP – Time for a Sabbatical?
Review of recent advances in non-invasive hemoglobin estimation
Unlocking AI with Model Context Protocol (MCP)
Agricultural_Statistics_at_a_Glance_2022_0.pdf
Encapsulation_ Review paper, used for researhc scholars
Building Integrated photovoltaic BIPV_UPV.pdf
Per capita expenditure prediction using model stacking based on satellite ima...
Machine learning based COVID-19 study performance prediction
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
Diabetes mellitus diagnosis method based random forest with bat algorithm
20250228 LYD VKU AI Blended-Learning.pptx
Reach Out and Touch Someone: Haptics and Empathic Computing
Mobile App Security Testing_ A Comprehensive Guide.pdf
Approach and Philosophy of On baking technology
Network Security Unit 5.pdf for BCA BBA.
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx

Taking Flow to the Next Level with Just Enough Code

  • 1. Taking Flow to the Next Level with Just Enough Code ​ Mary Pustejovsky ​ Solution Architect, Heller Consulting ​ @mpusto ​  ​ Robert Strunk ​ Senior Developer, Coastal Cloud ​ @sf_tidbits ​ 
  • 2. ​ 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 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. Safe Harbor
  • 5. ​ Examples: ​  How do you style the Flow page? ​  How do you pass in lots of variables? ​  What if I want someone to add an attachment? ​  How do you determine where the Flow ends? ​ Visualforce and Apex to the rescue! Flow is POWERFUL but has limits Can’t I just do everything in Flow?
  • 6. All Dressed Up with Some Place to Go Altering the Flow appearance and starting with a specific record
  • 7. Embed in VF page and open up possibilities! Visualforce Example
  • 9. Upload Attachments from a Flow How to allow users to upload an attachment within a Flow GitHub Repo : http://bit.ly/1N3gOyZ
  • 10. Create your controller and initialize your Flow.Interview member Create your Controller http://bit.ly/1N3gOyZ
  • 11. Add variable to hold attachment parentId Create your Controller http://bit.ly/1N3gOyZ
  • 12. Add variable to hold the attachment Create your Controller http://bit.ly/1N3gOyZ
  • 13. Add method to perform upload Create your Controller http://bit.ly/1N3gOyZ
  • 14. Set the controller attribute to your Apex controller Create your Visualforce Page Add your <flow:interview> tag http://bit.ly/1N3gOyZ
  • 15. Add a conditionally rendered outputPanel that holds the file upload markup Create your Visualforce Page http://bit.ly/1N3gOyZ
  • 16. Finish Locations with Apex How to send the user to a newly created record from a Flow
  • 17. Change where the flow ends instead of starting again What is a Finish Location?
  • 18. Add a finish location attribute Set a relative URL for a page Setting a Finish Location – Starting Small
  • 19. Create your own controller for added logic --Finds the record ID and sets the page location Setting a Finish Location – Thinking Bigger
  • 20. Add the Flow Getting the ID of the record Use the ID to get the URL Break up the pieces
  • 21. Add the controller Update the finish location Update the Page