Skip to main content

Getting Started

Call enableCustomMapping to turn on the custom mapping UI for one or more connectors. The function accepts an array of connector settings and/or flow schemas.

Source to Target Custom Mapping Demo

Input formats

enableCustomMapping accepts EnableCustomMappingInput[]. Each item is either a connector setting or a flow schema. You can pass both formats in the same call. Connector settings and schemas are stored separately: connector IDs replace the connector list, while schemas are merged by flowId.

Catalog format

Pass connector IDs to enable custom mapping using the connector’s source catalog as the left (source) side of the mapping UI.
The catalog format is in Beta and works only with v2 flows. The flow must have a valid discovered catalog in v2_source; otherwise, the widget cannot populate the source tables and fields.
Custom mapping is shown for a linked connector when its ID is in this list, the active flow is a v2 flow, and v2_source contains a valid discovered catalog.

Schema format

Pass a schema object to define your app’s source tables and fields at runtime. Your schema appears on the left (source) side of the mapping UI. The widget still fetches the connector’s catalog for the right (target) side. For more on schema structure, see custom field mapping.

React example

Schema-based custom mapping does not require a v2 flow. If a schema is registered for the active flow, the mapping tab is available even when the flow version is not v2.

Combining catalog and schema

Sample mapping output

After saving their mapping, the following field is added to the tenant’s tenant-config.
With the schema format, source values match the table names you passed in schema, and field keys in fields match the id values you defined.