I have a Softphone Layout that needs to call a lightning component from a flow.

I wanted to call the lightning component from a Visualforce page so I could set the finish location.

When I try to test I get the error:

We can’t display component 'c:FMZ_LeadSearch', because it isn't supported in Classic runtime. Ask your Salesforce admin to distribute this flow in Lightning runtime instead.

This documentation states that I just need to Enable Lightning runtime for flows. Which I have done but am still not able to run the flow.


There seems to be something going on with the Viualforce Page to Lightning Component display. What step am I missing? My lightning component has implements="force:appHostable, lightning:availableForFlowScreens, flexipage:availableForAllPageTypes"> and my VFP has

<apex:page standardController="Lead">
    <flow:interview name="Search_Create_Lead_Flow" finishLocation="{!URLFOR('/home/home.jsp')}"/>             

if I'm not mistaken, the issue here is that you are trying to run this flow as a portion of a visual force page. If this is the case, then it will not work, as flows that are embedded in a visual force page will run using the classic runtime regardless of if lightning runtime for flows is enabled or not.

More information can be found below: https://help.salesforce.com/articleView?id=flow_distribute_runtime.htm&type=5

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.