2

I'm looking for ways to expose one LWC to flow builder to drop it on a screen component. Anyone aware of any such attribute that needs to be set in LWC Meta.xml

2

To make the components available in flow screens, edit the lightning web component configuration file to include a target of lightning_FlowScreen. For example:

<?xml version="1.0" encoding="UTF-8"?>
<LightningComponentBundle xmlns="http://soap.sforce.com/2006/04/metadata">
  <apiVersion>45.0</apiVersion>
  <isExposed>true</isExposed>
  <masterLabel>Example Flow Component</masterLabel>
  <description>This lwc is available in flows.</description>
  <targets>
      <target>lightning__FlowScreen</target>
  </targets>
</LightningComponentBundle>

See the Winter ‘20 release notes for more information.

5

As per the documentation:
https://developer.salesforce.com/docs/component-library/documentation/lwc/lwc.get_started_supported_experiences
LWC is not supported in Visual flows as of now!

As mentioned, you can wrap a lightning web component in an aura component, and can use the same in flows, and in many other experiences and tools where LWC is not supported!

Update: Now LWC is supported in flows from Winter' 20 updates, as the feature has been implemented.
https://releasenotes.docs.salesforce.com/en-us/winter20/release-notes/rn_forcecom_flow_fbuilder_solutions.htm

  • Would it not be possible if I wrap the LWC inside an aura component which I can drop in flow? Just a thought. – Ashish Sharma Mar 26 at 6:23
  • @AshishSharma Yes, its possible, I had updated the answer. – Aditya Vijay Mar 26 at 6:48
  • Great! Thanks!! – Ashish Sharma Mar 26 at 11:03
2

LWC is not supported yet with flow in this version. See official documentation for this. You have to use Aura component for your requirement.

2

Winter '20 Salesforce release will allow you to embed Lightning Web components to flow builder.

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.