Salesforce Fact #532 | Access flow output variables in LWC
Now we can embed lightning flow inside LWC using lightning-flow tag. We can provide input to the flow as well as we can get the output variable value.
In order to get the output variables from the flow, we can make use of the outputVariables parameter of onstatuschange event.
Reference: https://developer.salesforce.com/docs/component-library/bundle/lightning-flow/documentation
Attached are the screenshots of one such example. In this case, we are returning the record Id of the created contact from screen flow to LWC.
Hi , I have created LWC and Flow. But while deployment of LWC from VSC to org , getting error : No MODULE named markup://lightning:flow found : Please help
ReplyDeleteThis is applicable with Winter 23 release. Please try in a preview org.
Delete