Set duplicate flag field

This Relativity script identifies and sets a Yes/No field on all case documents to indicate them as original or duplicate.

This is a case functionality script to be run at a case level.

Special considerations

Consider the following when running this script:

  • This script cannot be undone.
  • The script may run for some time without reporting any progress.
  • The script skips any documents which already have their duplicate flag field already set to Yes. (It updates only documents on which this field isn't set.)

Inputs

Note: Before running this script, you must create a Yes/No field to act as the Duplicate Indicator.

  • Duplicate Indicator - the Yes/No field that determines whether documents are duplicates.
  • Relational Field - the field that shows document relationship (such as MD5 Hash).
  • Document Sort Field - the sort order field for duplicate documents. For example, if MD5 Hash is specified as the Relational Field and Control Number as the Document Sort Field, the document with the lowest Control Number will be flagged as original; the other documents with the same MD5 Hash field value will be flagged as duplicates.

    Set duplicate flag field

Results

When you run this script, all documents that are duplicates are marked Yes and all documents that are original are marked No.