function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
smita bhargavasmita bhargava 

How to call lightning component from visual flow

I have created a flow and its working fine.
Now in the flow on a screen I have a link , when I click this link it should call a lightning component. 

But when I click this link it isthrowign an error as 
"We can’t display component 'c:MyComponent', because it isn't supported in Classic runtime. Ask your Salesforce admin to distribute this flow in Lightning runtime instead."


Best Answer chosen by smita bhargava
Raj VakatiRaj Vakati
You need to Enable Lightning runtime  to use the lightning component in flows 

  1. From Setup, enter Process Automation Settings in the Quick Find box, then select Process Automation Settings.
  2. Select Enable Lightning runtime for flows.
  3. Save your changes.