You need to sign in to do that
Don't have an account?
Somnath1690
How to Invoke a flow from LWC Component
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.
How do we achieve something similar in an LWC Component? please note Lightning web component can now be added in flow screens.
Greetings to you!
Unfortunately, you can't do that as of now.
Mapping of Aura Components to Lightning Web Components: https://developer.salesforce.com/docs/component-library/documentation/lwc/lwc.migrate_map_aura_lwc_components
The workaround would be to wrap LWC component in aura component, fire custom event from LWC which will be taken care by aura to launch.
Please refer to the below link which might help you further.
https://developer.salesforce.com/docs/component-library/documentation/lwc/lwc.get_started_supported_experiences
I hope it helps you.
Kindly let me know if it helps you and close your query by marking it as solved so that it can help others in the future. It will help to keep this community clean.
Thanks and Regards,
Khan Anas