Hands on 6 - invoking a Flow using an Inline Visualforce page

It is also possible to call a Flow through an Inline Visualforce page. Let's start with a business scenario.

Sara Bareilles, who is working as a system administrator with Universal Containers, receives a requirement as soon as a contact is added to an Opportunity (that is, using an Opportunity contact role) as a primary contact to the copy contact's lead source to the Opportunity lead source.

There are no out-of-the-box solutions for this. You can't achieve a preceding business requirement using Workflow Rule. You can achieve it through the Apex code. We will use Flow and an Inline Visualforce page to achieve it, the steps to create which are as follows:

  1. Navigate to Setup |

Get Learning Salesforce Visual Workflow and Process Builder - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.