object_patterns
Get pattern guidance for D365 F&O objects: analyze form patterns, validate AxForm XML, and retrieve structure specs for tables, reports, and mobile apps.
Instructions
Pattern toolkit. Choose a domain:
• table → field/index/relation patterns for D365FO tables. Filter by tableGroup or similarTo a given table.
• form → form-pattern toolkit; pick an action:
analyze → pattern advisor + usage analysis. For a NEW form pass
recommend(preferred): the Microsoft decision tree picks the pattern and names reference forms to clone. Or filter by formPattern / dataSource / similarTo.spec → structure spec of a pattern/sub-pattern: hierarchy, ordering, allowed children, reference forms, lifecycle.
validate → AxForm XML validator (hierarchy/order, sub-patterns, PatternVersion) → FP001-FP010. Call before d365fo_file action=create. • report → SSRS implementation recipes: object roster, scaffold call, checks. Optional pattern=. • mobile-app → warehouse-app screen recipes, led by the choice between the two frameworks that build them (ProcessGuide vs WHSWorkExecuteDisplay): create a flow, add or replace one screen, step icon/title, GS1 scan input. Optional pattern=.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| xml | No | [validate] Complete AxForm XML to validate. Provide this OR formName/filePath. | |
| limit | No | [analyze] Max pattern examples. | |
| action | No | [form] Which form-pattern operation to run. repair = auto-fill missing required controls. | |
| domain | No | Optional — inferred from the other params (action/pattern/xml/formName → form; tableGroup → table). A concept like "number-sequence" is not a domain: that is get_knowledge. | |
| pattern | No | [spec|report|mobile-app] Pattern name (id, xmlName or alias) — e.g. "SimpleList", "FieldsFieldGroups", "PrintMgmtFormLetter", "processguide-flow". | |
| filePath | No | [form/validate] Path to an AxForm XML file not yet indexed. | |
| formName | No | [validate] Name of an indexed form — XML is loaded from the metadata store. | |
| recommend | No | [analyze] Pattern advisor: describe requirements, get a recommended pattern + reference forms to clone. | |
| similarTo | No | [table] table / [form-analyze] form name to find similar patterns. | |
| dataSource | No | [form/analyze] Table name - find forms using this table | |
| tableGroup | No | [table] Table group type to analyze (choose one). | |
| formPattern | No | [analyze] D365FO form pattern to analyze |