Lookup, a Flow Screen Component

Watch the Video. Go get this component

I’m pleased to get to present this useful new component. Now you can add multiple Lookup controls to Flow Screens without writing code.

This component is based on the excellent Lightning Lookup control by John Pipkin and Opfocus. They did all the heavy lifting, and all I had to do was create a thin wrapper to wire up the attributes to Flow. Those four attributes are:

Object Name: Type the name of the object that you want this control to lookup. You can use custom objects but don’t forget the “__c”

Display which Field: You get to choose which field actually shows up in the combo box and gets searched on. Usually you’ll just want to type “Name” here but you can use any text field

Field Label: This is the label of the control itself

Output which value?: You can separately decide which field should be extracted from the selected object and passed to Flow. For example, you might want to display Name but output Id because Id is easier to work with for some Flow Actions.

There’s also an Output Value attribute that’s used on the Output tab to map your selected value to a Flow variable.

Hope this is useful! If you want to customize this control, the source code is available here.