Lookup tables

Keep values by key, such as product highlights by SKU, and use them in lookup rules.

A lookup table is a small spreadsheet that belongs to a shop. Each row has a key in the first column and values in the other columns. Lookup rules in channel fields and shared fields read from it. For example, a table Highlights with the columns sku, highlight_1, highlight_2 and highlight_3 can fill product_highlight for each product.

You manage tables on the shop's Lookup tables page.

Create a lookup table

  1. Open the shop's Lookup tables page.
  2. Click New table, type a Name, e.g. Highlights, and click Create.
  3. Type the column names in the top row. The first column is the key.
  4. Add rows, or fill the table in one of these ways:
    • Copy cells in Google Sheets or Excel and paste them into any cell. The cells fill to the right and down, and Feedsmith adds rows and columns as needed.
    • Click Paste table to replace the whole table with pasted cells. Tick First row has the column names if it does.
    • Click Import CSV to replace the whole table with a CSV file. The first row gives the column names.
  5. Click Save changes.

A table can have up to 5,000 rows, 20 columns and 2,000,000 characters. Export CSV downloads the table. Use the search box to find rows.

Tables don't have drafts or versions. When you save a table that a rule uses, the change goes live and Feedsmith rebuilds every channel of the shop. You need permission to publish to save a table that's in use.

Use a table in a rule

  1. On a channel's Rules tab or on Shared fields, add a rule with the mapping type Use lookup table.
  2. Choose the source field, e.g. sku.
  3. Choose Lookup table, then the table and the column to return, e.g. Highlights and highlight_2.
  4. Choose what happens when there's no match: Keep original value or Leave empty.

Feedsmith compares the whole value of the source field with the first column, ignoring upper and lower case and spaces at the start and end. If two rows have the same key, the first row wins.

Rename or delete

You can't delete or rename a table while a rule uses it, or rename or remove a column a rule returns. Feedsmith shows which fields use it. Change those rules first, then try again.