build_d365fo_project
Compile an entire D365FO model with xppc.exe, blocking until the build completes. Use fullBuild to resolve stale-symbol compilation errors and dbSync to sync database changes after success.
Instructions
Build a D365FO model with xppc.exe (compiles the ENTIRE model, not one project). Blocks until done — call ONCE per build, do NOT poll (wait:false = legacy polling mode). fullBuild:true fixes "not been successfully compiled since it was last changed" stale-symbol errors.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| wait | No | When true (default) the tool blocks until the build finishes and returns the final result in a single call. The agent should make exactly one call per requested build. Set false for legacy fire-and-forget polling behaviour. | |
| force | No | Kill any running build processes for this model and restart. | |
| dbSync | No | On a SUCCESSFUL build, also run the database sync (SyncEngine.exe) — REQUIRED after any table/view/data-entity change. true = partial sync of the syncable objects in the project, full-model when it has none; an ARRAY syncs exactly those tables/views (much faster). | |
| bpCheck | No | On a SUCCESSFUL build, also run the best-practice checker and append its findings. Prefer this to a follow-up run_bp_check call: one build call instead of two round trips. | |
| fullBuild | No | Full recompile of the TARGET model only (deps stay incremental). Use when xppc reports stale symbol errors. | |
| modelName | No | D365FO model name to build (e.g. MyCustomModel). Auto-detected from workspace if omitted. | |
| waitTimeoutMs | No | Maximum time (ms) to block when wait:true before returning a "still running" snapshot. Defaults to 30 minutes. The build itself continues in the background. |