match method finds a single record by matching specific field values. This is useful for finding records by unique fields other than the ID.
Configuration Example
parametersSchema(DataSchema): Schema for the additional parametersfields(array): Fields that can be used for matching
Implementation Examples
Input
| Property | Type | Description |
|---|---|---|
fields | object | Field values to match against |
credentials | object | Authentication credentials |
parameters | object | Method-specific parameters |
Return Value
| Property | Type | Description |
|---|---|---|
record | object|null | The matching record or null if not found |
Example
Notes
- Return
record: nullif no match is found - The record is automatically processed through
fieldsFromApi - Use this for deduplication or finding records by natural keys
- Only configured fields in the
fieldsarray can be used for matching