Hands on 6 - displaying a two-column Flow through a custom button

When your users are accessing Flows through a URL, it is possible to control whether to show the screens with one column or two columns. Two-column screens are supported only if you have enabled Lightning runtime for Flows.

Let's look at a business scenario. Alice Atwood is working as a system administrator at Universal Containers. She has created Clone existing Opportunity Flow in Chapter 3Manipulating Records in Visual Workflow, for exercise question six, as shown in the following screenshot:

Currently, they are using a custom button on the opportunity page to access it. The button code should look like what is shown in the following screenshot:

Now she has received a requirement from the Sales users to make it a two-column Flow.  

Perform the following steps to make a Flow into two columns when it is accessed via a URL:

  1. Navigate to the button code and add the following code at the end of the URL: 

        flowLayout=twoColumn

At the end, the new URL should look like what is shown in the following:

        /flow/RakeshGupta/Clone_existing_Opportunity?VarT_OppName=         
       
{!Opportunity.Name}&flowLayout=twoColumn

At the end, the custom button will look like what is shown in the following screenshot:

  1. Once you are done, click on the Save button.

  2. To test this, identify an opportunity record and go to the opportunity details page. Then, click on the Clone Opportunity button. The Flow screen should look like what is shown in the following screenshot:

Now onward, the preceding Flow will be displayed as a two-column screen to users.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
13.59.205.183