Skip to main content
When embedding Flatfile, this plugin should be deployed in a server-side listener. Learn more

@flatfile/plugin-dedupe


This plugin dedupes records in a sheet via a sheet level custom action.

Event Type:
listener.on('job:ready')

Parameters

string
required
The jobOperation parameter specifies the name of the job operation to match on.
string
The on parameter specifieds which field key to match on.
'first' | 'last'
The keep option lets you choose whether to keep the first or last duplicate record.
function
The custom parameter accepts a custom dedupe function. This will override the keep parameter.
boolean
The debug parameter lets you toggle on/off helpful debugging messages for development purposes.

API Calls

  • api.records.get
  • api.jobs.ack
  • api.records.delete
  • api.jobs.fail
  • api.jobs.complete

Imported NPM Packages

Usage

An action with the operation name of “dedupe-email” must be configured on a Sheet in order to the plugin to be triggered.
install
import

See the code

@flatfile/plugin-dedupe