1

In aura programming model, we could set input variables and invoke the flow like below. flow.startFlow("Delete_Contact_From_Account", inputVariables);

How do we achieve something similar in an LWC Component? please note Lightning web component can now be added in flow screens.

2 Answers 2

1

after investigation, I found that as of now the only way is to wrap it inside an aura component and fire event from lwc cmp to an aura when on the onchange handler the flow is called.

1

Lightning Flows can now be embedded in LWCs.

Check it out: https://developer.salesforce.com/docs/component-library/bundle/lightning-flow/documentation

You also get the methods you were looking for:

resumeFlow() startFlow()

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .