Adding Data to, Publishing, and Managing Lookup Table Revisions - m3ter Documentation

Documentation Index

Fetch the complete documentation index at: /llms.txt

Use this file to discover all available pages before exploring further.

This topic explains how to add string or number values for a Lookup Table Revision data schema and publish and manage Table Revisions. A Revision’s data values only become available for calculations that reference the Lookup Table when the Revision is published:

In this way, you can manage and deploy Lookup Table Revisions for use cases where you need to quickly and dynamically update the data values used for your calculations. This topic continues the variable discount rate example introduced in the previous topic and goes on to explain how to add data to, publish, and manage Lookup Table Revisions:

Adding and Managing Data for Table Revisions

You can quickly add string and number values to draft Table Revisions. To add data to a Table Revision:

  1. Select Settings>Lookup tables. The Lookup tables page opens.
  2. Select the Name hotlink text of the Lookup Table. The Lookup table details page opens.
  3. Under Revisions, select the Name hotlink text of the draft Revision you want to add data to. The Revision details page opens.
  4. Under Revision data, select Create. The Create page opens.
  5. On Revision data details, enter the required string and number data values for the Revision field schema:
  1. Select Create revision data. You are returned to the Revision details page and under Revision data the added data values are shown for the Revision fields:
  1. If you want to update the data you’ve added to the Revision before you publish it, under Revision data you can:
  1. If you want to delete all the data you’ve added to the Revision:
  1. If you want to delete a single data item:
  1. Select to Delete the single data item.

Important: Adding data prevents updates to the Revision data field schema! If you add data values to a Revision, you will no longer be able to edit the Revision’s data field schema to add additional fields, delete fields, change field order, or change keyed fields. See the following Managing Table Revisions section.

Publishing Table Revisions

When you’ve added any required data values to a draft Table Revision, you can publish it and make the values available to any Lookup functions used in calculations that reference the Lookup Table. To publish a Table Revision:

  1. Select Settings>Lookup tables. The Lookup tables page opens.
  2. Select the Name hotlink text of the Lookup Table. The Lookup table details page opens.
  3. On the Revisions panel under Actions, select the Publish icon for the DRAFT Revision you want to publish:
  1. Alternatively, select the Name hotlink text of the Revision you intend to publish. The Revision details page opens:
  1. On the Revision details panel, select Publish:
  1. Select Publish to confirm. The Revision details panel adjusts and shows the Revision as PUBLISHED:

Note that:

We now have a published Revision of the Discount Vol Rates Lookup Table. This will make available to Lookup functions the data values we want to use for our current discounted usage rate example:

Duplicating Table Revisions

In many cases of using Lookup Tables to fulfill dynamic data mapping use cases, you’ll want to use the same data schema as the currently published Table Revision. You can quickly duplicate the currently published Table Revision as a draft, add new data values as required, and then publish the updated draft Revision. To duplicate a Table Revision:

  1. Select Settings>Lookup tables. The Lookup tables page opens.
  2. Select the Name hotlink text of the Lookup Table. The Lookup table details page opens.
  3. Select the Name hotlink text of the Revision you want to duplicate. The Revision details page opens.
  4. On the Revision details panel, select Duplicate:

A confirmation dialog opens:

  1. Select Duplicate to confirm. The Table Revision is duplicated and if you open the Lookup Table details page, the duplicate is now listed on the Revisions panel:

The new duplicate Revision:

  1. You can now edit the duplicate Revision, as required.

Archiving Published Revisions

If you have published a Table Revision, created a new draft Revision, and then publish the draft, the existing published Revision is archived automatically. You can also manually archive the Published Revision.

Warning! If you’ve referenced the Lookup Table in a calculation and you archive the published Table Revision, values will not be available for the calculation until you publish another Revision.

To archive the published Table Revision:

  1. Select Settings>Lookup tables. The Lookup tables page opens.
  2. Select the Name hotlink text of the Lookup Table. The Lookup table details page opens.
  3. On the Revisions panel under Actions, select the Archive button for the PUBLISHED Revision:

A confirmation dialog appears:

  1. Select Archive. The Status of the Table Revision now shows as ARCHIVED on the Revisions panel:

Copying Table Revision Data

You can copy a Table Revision’s data to another Revision:

Notes and Warnings:

To copy Table Revision data:

  1. Select Settings>Lookup tables. The Lookup tables page opens.

  2. Select the Name hotlink text of the Lookup Table. The Lookup table details page opens.

  3. Select the Name hotlink text of the Table Revision you want to copy data from or copy data to. The Revision details page opens.

  4. On the Revision data panel, select Copy. A drop-down menu appears with two options.

  5. If you want to copy data from the current Revision to another Revision, select Copy data to destination revision. A Select revision dialog appears:

Note that in this example:

  1. Select the Table Revision you want to copy data to and select Confirm. A copy job is run:
  1. If you want to copy the data from another Revision to the current Revision, then select Copy data from source revision. A Select revision dialog appears:

Note that in this example:

  1. Select the Table Revision you want to copy data from and select Confirm. A copy job is run:

Viewing and Comparing Table Revision JSON

As an aid to managing Table Revisions, you can view the JSON for a Revision and open and compare it with another Table Revision’s JSON. To view Table Revision JSON:

  1. Select Settings>Lookup tables. The Lookup tables page opens.
  2. Select the Name hotlink text of the Lookup Table. The Lookup table details page opens.
  3. Select the Name hotlink text of the Table Revision you want to view JSON for. The Revision details page opens.
  4. On the Revision details panel, select View JSON. A modal opens allowing you to review the Revision’s JSON:
  1. If you want to compare the Table Revision’s JSON with that of another Revision, use the Select revision to compare drop-down to select the other Revision. The modal adjusts to add in the selected Revision as Comparator to the Original:
  1. Select Close to end your view Revision JSON session.

Downloading Table Revision Data

You can download a Lookup Table Revision’s data in either JSONL or CSV format. To download a Table Revision’s data:

  1. Select Settings>Lookup tables. The Lookup tables page opens.
  2. Select the Name hotlink text of the Lookup Table. The Lookup table details page opens.
  3. Select the Name hotlink text of the Revision whose data you want to download. The Revision details page opens.
  4. On the Revision data panel, select Download data. A popup menu appears.
  5. Select the format which you want to use for the download - Download JSONL or Download CSV:

Tip: Downloading ARCHIVED Revision data? If you open Revision details for an ARCHIVED Revision, then the Revision data panel will show no revision data. This is because when a Revision is archived, its data is stored remotely. However, when you download an ARCHIVED Revision, its data values are retrieved from remote storage and included in the downloaded file.

Uploading Table Revision Data

Instead of manually adding Revision data, as explained in the previous section, you can upload either a JSONL or CSV formatted file to either create the initial Revision schema data values or to update the existing data values.

Note: You can only upload data to a DRAFT Revision.

To upload Table Revision data:

  1. Select Settings>Lookup tables. The Lookup tables page opens.

  2. Select the Name hotlink text of the Lookup Table. The Lookup table details page opens.

  3. Select the Name hotlink text of the Revision you want to upload data values for. The Revision details page opens and the Revision data panel shows the existing data values for the Revision schema fields:

  4. On the Revision data panel, select Upload revision data:

The panel adjusts to allow you to either drag and drop a file or use Select files to open a File upload dialog to select a file for upload:

You’ll receive a confirmation when the upload job has succeeded:

  1. Select Revision data. You can then check that the values contained in the uploaded file have either created new data values or updated the existing values:

Managing Table Revisions

You can edit or delete a draft Table Revision at any time. However:

To manage Lookup Table Revisions:

  1. Select Settings>Lookup tables. The Lookup tables page opens.
  2. Select the Name hotlink text of the Lookup Table. The Lookup table details page opens.
  3. If you want to edit a Table Revision, on the Revisions panel select the Edit icon:

The Edit page opens.

  1. Make your editing changes and select Update revision.

Important: Data already added to a Revision! If you’ve already added data values to a Revision, when you open the Edit page, you will not be able to make any changes to the Revision’s data field schema. You must first delete any data values, re-open the Edit page to make any required changes to the Revision’s data field schema, and then add in new data values.

  1. If you want to delete a Table Revision, on the Revisions panel select the Delete icon:

A confirmation dialog appears.

  1. Select Delete to confirm the delete action.

Reviewing and Managing Revision Data Jobs

On the Revision details page, you can review and manage data jobs that have run for a Revision’s data. There are four types of Lookup Table Revision data jobs:

You can quickly check the status of a Revision’s data jobs and manage them. If a data job has failed, then a failure reason is given allowing you to follow-up and troubleshoot.

To review and manage Table Revision data jobs:

  1. Select Settings>Lookup tables. The Lookup tables page opens.
  2. Select the Name hotlink text of the Lookup Table. The Lookup table details page opens.
  3. Select the Name hotlink text of the Revision you want to review and manage the data jobs for. The Revision details page opens.
  4. On the Revision data panel, select Review data jobs:

The Status of a Revision data job can be one of three states:

  1. If you want to delete a Revision data job, under Actions select the delete icon:

A confirmation dialog appears.

  1. Select Delete.

Using Multiple Key Fields - Checking Revision Schema Field Order

Your use case when utilizing a Lookup Table might require multiple key fields to be defined for the Lookup Table Revision schema. For example, suppose you want a variable cost amount to be applied which is determined on the basis of three key field values for country, region and charge type. To meet the case you plan to use a Lookup.findNumber() function, such as:

Lookup.findNumber("cost_lookup", "cost", 1, "country", "region", "type")

For this type of case, you must ensure the order in which you’ve set up the three key fields for the published Lookup Table Revision schema corresponds to the order you have used the key fields in the Lookup function. For the above function, the Revision schema key field order would need to be:

Notes:

Reordering Revision Schema Key Fields

After setting up a Table Revision schema, you might need to edit it and reorder the key fields to ensure the order matches the order you’ve used in a Lookup function.

To reorder Revision schema key fields:

  1. Select Settings>Lookup tables. The Lookup tables page opens.
  2. Select the Name hotlink text of the Lookup Table. The Lookup table details page opens.
  3. On the Revisions panel, select the Name hotlink text of the Revision. The Revision details page opens.
  4. Select Edit.
  5. On the Revision fields card, select Revision fields order. A drop-down Order menu appears.
  1. On the Order menu select the field you want to move and drag and drop to where you want to place it in the field order:

  2. When you have achieved the required key field order, select Update revision.