Salesforce Fact #445 | Pass data from VF page to screen flow
Suppose we have a use case where we are invoking a screen flow from a VF page and we would like to set the value of one of the flow variable from the VF page. The VF page has been exposed as a detail page button.
In order to do this, we create a variable in the flow specifying it both as: Available for input and Available for output. Now, in the apex controller associated with the VF page we take a reference of that screen flow and set the value of the flow variable using map.
Attached are the screenshots.
Comments
Post a Comment