Summer’17 :: Embed Your Flow in Lightning Experience

by Sudipta Deb | Apr 28, 2017 | flow, Lightning Experience, New Features, Salesforce Release, Summer17 | 4 comments


In this post, I am going to explain the new Flow features introduced by Salesforce in Summer’17.


Add Flow into Record Detail Pages:
With Summer’17 Salesforce release, now you can add flows into any Lightning Pages. You need to add the Flow component to your Lightning pages. This feature was introduced by Salesforce in Winter’17 release as a beta functionality, and in Summer’17 this is now Generally Available.

In this section, I am going to explain how you can add flow into record details page through Lightning App Builder.

Let’s first create a flow which needs a parameter which is basically the record Id. The intention is that when we will add this flow into the record detail page, we will pass the record Id to flow and then flow will fetch necessary information from the record and prepare its own view.
So here is the flow –

Flow Name: Survey Customer
This flow is having one input variable – “recordId” which will store the Salesforce Record Id passed from record detail page.

With this variable, the flow will query the Salesforce Contact Record, fetch Contact’s First Name and Last Name and generate the customized Welcome Message. I am not going to show how Flow is configured because the intention of this post is to demonstrate how to use the flow inside Lightning Experience.
Here is the final view of the flow –


Now, will come the fun part. Let’s say we wanted to display this message in Contact Detail Page. What we need to do is – Open the contact detail page and then click on the Edit Page option from Top Right.
This will open the Contact Detail page in Lightning App Builder – 

From the left section, select the Flow Component under Standard and drag it under Activity Section at the button.
Now select the Flow component, and you will see the configuration panel at right next to it. This is the place where you will select your flow and also the parameters you will pass to the flow. See the animation below –
And that’s all. Now the contact details page will look like –

Enjoy Flow in Lightning. Please provide your feedback.

Written by

Related Posts

New Apex Method | Extracting Picklist Values Based on Record Type Inside Apex

New Apex Method | Extracting Picklist Values Based on Record Type Inside Apex

For years, Salesforce developers have faced a common challenge: programmatically retrieving picklist values that are specific to a certain Record Type directly within Apex. The “solutions” often involved either complex SOQL queries against metadata, relying on the UI API (with its associated callout limits and serialization overhead), or maintaining clunky custom metadata/settings.

Good news, Technical Potpourri readers! The Salesforce Spring ’26 release is bringing a game-changer that will significantly simplify your Apex code and improve performance: native Apex methods to filter picklist values by Record Type!

read more...
Apex Cursor and Its Advantages Over Batch Processing

Apex Cursor and Its Advantages Over Batch Processing

Struggling with large datasets and SOQL governor limits in Salesforce? In this video, I will dive deep into Apex Cursors, the powerful new feature that revolutionizes how we process millions of records.

Apex Cursors allow developers to navigate through query results in manageable chunks within a single transaction or across Queueable jobs. In this video, I will show you the correct way to implement Apex Cursor and also when this is an exception, how to handle that and perform retry.

read more...

4 Comments

  1. Mike Martin

    Hi Sudipta,
    This is really a powerful feature and you have explained it very clearly with the example. I always love reading your blog post. Keep sharing your knowledge. Cheers
    Mike

    Reply
  2. Quddus

    Hi , One small question…if I wanted to pass other value instead of recordId. Can I pass the same in the lightning page?
    Like from the contact detail page, I want to pass the AccountId to a flow.How can i send the value ?
    I do tried wid {!record.AccountId} or {!Contact.AccountId} but it didn work.

    Reply
  3. Quddus

    IHi , A small question…if I wanted to pass other value instead of recordId. Can I pass the same in the lightning page.
    Like from the contact detail page, I want to pass the AccountId to a flow.How do i send that ?
    I tried wid {!record.AccountId} or {!Contact.AccountId} but it didn work.

    Reply

Leave a Reply