User guide · Chapter 17

Native Flow Lookup

Native Flow Lookup is a search box for records on a Flow screen. The user types, sees the matching records, and picks one. The Id of the record goes into a Flow variable.

When to use it

Operators

Operator sets how the typed text is matched to the record names. Matching ignores upper and lower case.

OperatorAPI valueWhat matchesExample
EqualsequalsNames that are the same as the typed text.Typing Smith finds Smith only.
Not EqualsnotEqualsEvery name except the typed text.Typing Smith finds everyone but Smith.
Starts With (default)startsWithNames that begin with the typed text.Typing Sm finds Smith and Smart.
ContainscontainsNames that have the typed text anywhere.Typing mit finds Smith.
Lookup with Operator Equals and a full name typed, one matching record listed
Desktop. Operator Equals. The full name is typed and one record matches.
  1. The typed text, a full name
  2. The one record that matches
Lookup with Operator Not Equals and a full name typed, a list of other records
Desktop. Operator Not Equals. The list shows other records.
  1. The typed text, a full name
  2. The open list shows other records
Lookup with Operator Contains and part of a name typed, one record listed
Desktop. Operator Contains. Part of a name is typed.
  1. The typed text, part of a name
  2. The open list with one record

Add it to a screen

  1. Add a Get Records element for the object. Add a filter to remove records you do not need. Choose fields, and pick the field to search and show as the second field. For contacts, pick Name.
  2. In Flow Builder, open the Screen element. In the Components list, find Native Flow Lookup.
    Native Flow Lookup highlighted in the Flow Builder components list
    Flow Builder. Find Native Flow Lookup.
    1. Native Flow Lookup in the Components list
  3. Drag it onto the screen.
    Native Flow Lookup on the screen canvas
    Flow Builder. The Lookup on the canvas.
    1. Native Flow Lookup on the screen
  4. In the settings panel, type a Label. Pick the Get Records element in Collections. Set Operator and Navigation.
    Native Flow Lookup settings panel with Label, Collections, Operator and Navigation
    Flow Builder. The four settings.
    1. Label
    2. Collections
    3. Operator
    4. Navigation
  5. Store the output Selected in a Text variable.

Settings

SettingAPI nameTypeDefaultWhat it does
LabellabelTextNative Flow LookupThe text above the search box.
CollectionscollectionText, set by the panelNoneThe Get Records element that holds the records to search. The second field is the one shown and searched.
OperatoroperatorTextStarts WithHow typed text is matched. Equals, Not Equals, Starts With, or Contains.
NavigationnavigationTextNot set in the panel; choose Next or NoneNone keeps the user on the screen. Choose Next if you want the Flow to move on as soon as a record is picked. An untouched component does not move on by itself.

Outputs

OutputAPI nameTypeDirectionDescription
SelectedselectedTextOutputThe Id of the record the user picked. Blank when the user clears the box.

Limits

Worked example: select a contact

The Multi Rental process Flow lets the user pick a contact on its View_Contacts screen.

SettingValue
LabelSelect Lookup
CollectionsGet_Rental_Contacts (Contact, searched by Name)
OperatorStarts With
NavigationNone
  1. Open the screen. The Lookup is empty.
    Select Lookup empty on the View_Contacts screen
    Before. Desktop. No contact is chosen.
    1. The Lookup box, Select Lookup
    Select Lookup empty on a phone
    Before. Phone. No contact is chosen.
    1. The Lookup box, Select Lookup
  2. Type two or three letters. The matching records appear.
    Lookup with 16 f typed and one matching record listed
    Desktop. Matching records. This test screen searches Rentables.
    1. The typed text, 16 f
    2. The open list with one record, 16 ft Box Truck
    Lookup with 16 f typed on a phone, one matching record listed
    Phone. Matching records on a phone.
    1. The typed text, 16 f
    2. The open list with one record, 16 ft Box Truck
  3. Pick a contact. The name fills the box and the Id goes into Selected.
    Select Lookup with a contact chosen
    After. Desktop. The contact is chosen.
    1. The chosen name fills the box
    A contact chosen on a phone
    After. Phone. The contact is chosen.
    1. The chosen name fills the box
  4. Use Selected in the next element, for example a Get Records element that finds the rentals of that contact.