Lookup, a Flow Screen Component

This component has been superseded by this one: https://unofficialsf.com/lookup/

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.

3 replies
  1. bradedgerly
    bradedgerly says:

    Is it possible to have a child control a grand child? My use case is that from 1 screen I want the user to pick an account (lookupFSC component 1), then pick a project (component 2), then pick a requirement (component 3)

  2. Saurabh
    Saurabh says:

    Hi there,

    I am getting this error.

    Exception occured: invalid ID field: Id Class.LightningLookupController.getFieldValue: line 141, column 1

    i am creating a account and contact from a screen flow.

    Can anyone help me solve this because i am getting this error everytime i submit account and contact ?


Leave a Reply

Want to join the discussion?
Feel free to contribute!

Leave a Reply to bradedgerly Cancel reply