Lookups

Overview

Lookup tables are used within EDP to simplify rules and other calculations by externalizing logic that can be expressed in a table. A Lookup table returns one or more Values based on one or more input Parameters. Lookups tables are often used to store static values in order to improve efficiency and to reduce system overhead. For example, you could store detailed product information (product name, price, etc.) in a Lookup table, then provide a simple Product ID or SKU to retrieve all of the details. 

Access

To access the Lookups screen, select Definitions from the Main Navigation Menu, then select Helpers > Lookups from the Sub-Category menu.

Features

The Lookups screen provides the following features:

 Searching and Sorting

Click hereClick here

Search

The search feature allows you to search for a specified text string anywhere within the following Lookup fields: Display Name, Internal Name, or Status.

  1. Optionally, in the search field near the top of Lookups screen, enter the desired text string.

  2. Press Enter, or click the search button (magnifying glass icon).

  3. The Lookups screen is refreshed to show only the Lookup tables that meet your search criteria. 

  4. To remove all search criteria, click the remove button ("X" icon).

Sort

The "Sort" drop-down menu allows you to sort the Lookup tables on a variety of different fields. To sort the list of Lookup tables, select the desired sort option from this menu.

  • Lookup table ID (default)

  • Name

  • Created Date

  • Updated Date

 

 Create a New Lookup Table

Click hereClick here

To create a new Lookup table: 

  1. Enter the Display Name for the new Lookup table.

  2. Click create. The "Edit Lookup" pop-up window is displayed. 

  3. The "Name" field is populated with the value you entered above; optionally edit this value.

  4. The "Internal Name" is automatically populated based on the "Name" value. This field is disabled by default. To edit the Internal Name, check edit internal name. A confirmation dialog box is displayed; click ok. Edit the Internal Name value.

  5. Optionally enter a description in the "Description" field.

  6. From the "Status" drop-down menu, select the Lookup table status -- Draft, Published, or Archived

  7. Select the Lookup table's effectivity period. Valid values are:

  • Always: This Lookup table doesn't expire.

  • Scheduled: Enter a start date and end date, and select a time zone. Optionally, check "Recurring" to use a recurring schedule. Select the desired schedule from the "Recurring Schedule" drop-down menu, or define a new recurring schedule (see below for details on that process).

  1. Click save.  

Define a Recurring ScheduleDefine a Recurring Schedule

To define a new recurring schedule for an item's effectivity:

  1. From the "Recurring Schedule" drop-down menu, select "Enter Schedule." The "Repeat" pop-up window is displayed.

  2. From the "Frequency" drop-down menu, select a recurrence frequency -- Weekly or Monthly.

  3. In the text field, enter the interval.

  4. For a Weekly frequency, select one or more days of the week. For example, "Tuesdays and Thursdays."

  5. For a Monthly frequency, choose one of the following options:

  • Day of month: Select one or more days of the month. For example, "the 15th and the 30th."

  • Day of week: Select one or more days of the week, for each of the four weeks within a month. For example: "the second Wednesday of the month."

  1. Click ok. The system adds the new schedule to the "Recurring Schedule" drop-down menu.

 

 

 View or Edit a Lookup Table

Click hereClick here

To view or edit the details of a Lookup table:

  1. Search, sort, or filter the Lookups screen as described above.

  2. Click on the desired Lookup table name.

  3. The Lookup Details screen is displayed and populated with all of the information about this Lookup table. See Lookup Details for more information.

 

 Deploy Lookup Metadata

Click hereClick here

After you've created a Lookup table, you must deploy the Lookup table metadata.  

  1. From the "Actions" menu in the top-right corner, select "Validate Lookups Metadata."

Note: You can deploy metadata immediately, but the best practice is to validate the Lookup table logic before deploying metadata to ensure no incorrect expression code gets deployed to the server that could cause issues.

  1. If the validation step passes, you'll see a message that says, "Lookups metadata is valid." If the validation step fails, you'll receive an error message; review and correct your Lookup table, then retry the validation step.

  2. Click deploy lookups metadata.

  3.  A confirmation dialog box is displayed; click confirm.

  4. If the deployment was successful, you'll see a message that says, "Lookups metadata has been deployed."

 

 View Deployed Lookup Metadata

Click hereClick here

To see the details of what Lookup table metadata has been deployed:

  1. From the "Actions" menu in the top-right corner of the screen, select "View Deployed Lookups." The "View Snapshot" pop-up window is displayed.

  2. Click the plus-sign to expand the message to view additional details, such as the total number of deployed Lookup tables. You can also drill in deeper, to see details of each deployed Lookup table.

  3. When finished, click the "X" icon to close the pop-up window.

 

Back to Helpers Overview

Last Updated: April 2022