get_knowledge
Look up X++ knowledge for D365 F&O: query rulebook topics, diagnose errors with step-by-step fixes, and retrieve op-specs for file operations.
Instructions
X++ knowledge lookup. Choose a kind:
• knowledge → queryable X++ rulebook: verified patterns, BP rules, AX2012→D365FO migration. Use BEFORE generating code. Topics incl.: select-statement, coc-authoring, bp-rules, sysoperation, event-handlers, workflow, number-sequences, security, sysda, form patterns.
• error → diagnose a D365FO/X++ compiler or runtime error: structured root cause + step-by-step fix + corrected X++ example (TTS mismatch, UpdateConflict, CSUV1, SYS10028 missing next, overlayering, BP errors, …). Call this instead of guessing — X++ error semantics differ from C#/.NET.
• op-spec → the parameter contract for ONE d365fo_file operation/objectType or ONE generate_object mode (topic = "add-index", "table", "scaffold:form", …). Those two tools deliberately do not ship their parameters inline; call this after picking the operation, before the call. Omit topic for the index of available topics.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | No | knowledge = look up an X++ topic/rule; error = diagnose an error message; op-spec = parameter contract for a d365fo_file operation/objectType or generate_object mode. | |
| topic | No | [knowledge] REQUIRED. Topic to query — e.g. "batch job", "ttsbegin", "RunBase vs SysOperation", "set-based operations", "CoC", "data entities", "number sequences", "security", "temp tables", "today() deprecated", "query patterns", "form patterns". [op-spec] The operation / objectType / mode to look up. | |
| format | No | [knowledge] concise = quick reference (default), detailed = full explanation with code examples | concise |
| errorCode | No | [error] Optional error code (e.g. SYS10028, CSUV1, BPUpgradeCodeToday) | |
| errorText | No | [error] REQUIRED. Full error message text as displayed in the X++ compiler or event log |