trigger_db_sync
Speed up database syncs by targeting only changed tables, or fall back to full-model sync when unsure.
Instructions
Run a D365FO database sync (SyncEngine.exe). Supports partial sync of specific tables — much faster than full-model sync. Use partial sync after adding/renaming fields or indexes on known tables. Pass projectPath to auto-extract tables from .rnrproj for smart partial sync. Use full sync only when unsure what changed.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tables | No | Partial sync: sync only these tables/views (faster). Example: ["CustTable", "MyNewView"]. Views and data entities go in this same list. Omit for full-model sync. | |
| modelName | No | Model to sync. Auto-detected if omitted. | |
| syncViews | No | FULL sync only: use syncmode FullAllAndViews. For partial sync, name the view in tables[] instead. | |
| packagePath | No | PackagesLocalDirectory root. Auto-detected if omitted. | |
| projectPath | No | Path to .rnrproj file. Auto-extracts table/view names for partial sync. Auto-detected from .mcp.json when no explicit tables given. | |
| connectionString | No | SQL Server connection string. Defaults to localhost/AxDB. |