Model connectors
What is a model connector?
A model connector is a TypeScript class that synchronizes data between an app and a specific model within a collection. Its purpose is to handle the reading and writing of data for a particular data model (such as Contacts, Tickets, or Invoices) within a sync integration.
- Schema Mapping: Model connectors are responsible for mapping data to and from your product's model schema and the external app's schema.
- Usage:
- You need one model connector for each model you want to sync in a data collection.
- Typically, a sync connector includes several model connectors—one for each data type being managed.
Example: If your integration syncs both "Accounts" and "Contacts" from Salesforce, you'll have a model connector for "Accounts" and another for "Contacts," each managing the translation and data flow for its respective model.
Using a built-in model connector
-
Bundled with Sync Connectors: Built-in model connectors come predefined as part of our built-in sync connectors for popular apps.
-
Extendability: If a built-in model connector doesn't quite meet your requirements (for example, if you need to map a custom field), you can extend the built-in model connector to add or override specific mapping or data handling functionality.