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.







Comments

  1. 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

    ReplyDelete
    Replies
    1. This is applicable with Winter 23 release. Please try in a preview org.

      Delete

Post a Comment

Popular posts from this blog

Salesforce Fact #192 | Call batch apex from flow

Salesforce Fact #457 | Get current user role name in flow