Giter Club home page Giter Club logo

sfdc-reloadable-flow-component's Introduction

Reloadable Flow Lightning Component

Overview

Demo embedding Flow (via Lightning Component) in Lightning Record Page and it reloading when the record is updated.

This project is a new take on my earlier project Reloadable Visualforce Lightning Component, whose purpose was to provide a way to display a Flow on a Lightning Record Page and have that Flow dynamically sync itself with any data changes made on the page.

That first project cobbled together a myriad of concepts, and although functional, it still didn't render the Flow in Lightning Runtime.

With Winter '18 we now have the lightning:flow component. We no longer need an <iframe> or Visualforce page to embed our Flow.

Demo Video

video

Installation

You may install the unmanaged code from GitHub and make any desired adjustments.

This will add a Lightning Component named ReloadableFlowCmp to your org (label in App Builder is Flow - Reloadable).

Getting Started

  1. Install this unmanaged package to your org using link above.
  2. Edit (or create new) a Lightning Record Page for an object (e.g. Account).
  3. Ensure the Standard component named Record Detail is on your Lightning Page.
  4. Drag the Custom component named Flow - Reloadable onto your Lightning Page.

screen shot

  1. Configure the Custom component by specifying Flow Name (e.g. Your_Awesome_Flow). The Flow should have an input variable named recordId of type text that the component will pass to the Flow based on the record being viewed.

screen shot

  1. Save and Activate your Lightning Record Page.
  2. Navigate to a record page to test.
  3. Edit and save the record and notice your Flow refreshes too!
  4. Click the Finish button on your Flow and notice the rest of the page refreshes too!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.