Skip to main content
Skip table of contents

Update Metadata

The Update Metadata pre-processor can be used to cleanse field metadata provided by a previous pre-processor. For example an Update Metadata pre-processor might be added after an Open AI pre-processor.

The Open AI processor might return a numeric value that has extra spaces within it (e.g. the value was 1000. 00). Using an update metadata pre-processor you could remove the spaces (e.g. value now becomes 1000.00).

The Update Metadata screen looks like this:

image-20260122-035849.png

Stage Settings

image-20260122-042454.png

The stage settings options are explained below.

Clear All stored metadata

image-20260122-040548.png

In most cases leave this disabled.

Copy metadata attributes

image-20260122-040635.png

In most cases leave this disabled.

Mapping Values

Press the + button image-20260122-042829.png to add one or more mappings.

Use the waste bin button image-20260122-042910.png to remove a mapping.

Source Placeholder

The source placeholder is where you specify which metadata field ID to get the input metadata from and where you apply a data transformation to it.

We recommend using the Placeholder Creator link available on the admin pages to create valid source placeholder syntax. It always available on every admin page in the bottom right corner near the EzeScan WebApps version number.

image-20260122-043127.png

Target Field

Specify the field ID of the field the updated metadata value will be written back into.

In this screenshot below we are showing the use of 3 mappings to remove $ symbols from 3 fields.

image-20260122-040921.png

Here’s an example mapping you can cut and paste from

CODE
{{metadata["sub_total"] | replace("$", "")}}                   sub_total        

Saving the Pre-Processor

Press the Apply button image-20260114-021549.png to save the pre-processor settings

 Saving the RIA Page

Press the Save Button image-20260114-021648.png to save the RIA page changes.

 

Testing the Pre-Processor

  1. Make sure its enabled.

  2. Run an input document through the queue.

  3. Confirm that the update metadata mapping values are being applied to the metadata value.

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.