Transform
@flatfile/plugin-dedupe
Dedupe records in a sheet via a sheet level custom action.
When embedding Flatfile, this plugin should be deployed in a server-side listener. Learn more
Parameters
The jobOperation
parameter specifies the name of the job operation to match
on.
The on
parameter specifieds which field key to match on.
The keep
option lets you choose whether to keep the first or last duplicate
record.
The custom
parameter accepts a custom dedupe function. This will override
the keep
parameter.
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
@flatfile/api@1.5.14+
@flatfile/hooks
@flatfile/listener@0.3.15+
remeda@1.14.0+
offers a set of utility functions for functional programming and data manipulation in JavaScript, providing a convenient way to work with arrays and objects.ts-pattern@5.0.4+
The exhaustive Pattern Matching library for TypeScript with smart type inference.
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