Flow templates
Best-practice Screen Flows built for FlowRunner. Install a template into your org, add it in the FlowRunner admin portal, and your team can run it on any email — then customize the flow in Salesforce Flow Builder to match your process.
Create Opportunity from an email
The full email-to-pipeline motion in one flow: it takes the people on the email you're reading, creates or updates them as Contacts, links them to an Account, and creates an Opportunity with those contacts attached — all pre-filled from the email context, without leaving your inbox.
- Upserts the email participants as Contacts and links them to an Account
- Creates an Opportunity with the contacts added as Contact Roles
-
Shows how to use the
FLR_inputContacts,FLR_inputEmailMessage, andFLR_inputUserinput variables in a real sales use case
Input variables you can declare
Any Screen Flow — a template or one you build yourself — receives the email's context through input variables you declare in Flow Builder. Declare only the ones the Flow needs; FlowRunner fills in the rest at runtime.
-
FLR_inputContacts— Contact[] (collection): one Contact per person the user selects on the email. -
FLR_inputEmailMessage— EmailMessage (record): subject, body, sender, recipients, and timestamps of the open email. -
FLR_inputUser— User (record): the Salesforce user running the Flow. -
FLR_inputAttachments— ContentVersion[] (collection): the attachments the user ticks on the email. FlowRunner uploads each ticked file to the org as a Salesforce File owned by that user before the Flow starts, then passes the file references.
FlowRunner reads a Flow's input variables when you add the Flow and when you click Refresh flows on the org in the admin portal. After you add or change one of these variables, click Refresh flows, or the Flow runs without it.
The full field reference for every variable is in the installation guide.
After installing
- Open the FlowRunner admin portal and go to Connections.
- Expand your org and click Add Flows to make the template available to your team.
- Customize it any time in Salesforce Flow Builder — FlowRunner picks up your changes on the next run. Input variables are the one exception: after you add or change one, click Refresh flows on the org.
New to FlowRunner? Start with the installation guide.