find_entity_for_table
WHEN: developer needs to integrate via OData and wants to find the entity name for a given table. Also generates a new entity template when none exists and generateIfMissing=true. Triggers: 'which entity exposes', 'OData entity for', 'find entity for', 'quelle entité expose', 'DMF entity for', 'create data entity', 'expose via OData', 'generate entity', 'entité de données'. Find D365 F&O data entities that expose a given table for OData/DMF integrations. Answers: 'Which entity exposes SalesTable for OData?' Scans all indexed AxDataEntityView objects to find entities with matching data sources. Returns entity name, public entity name (for OData URL), IsPublic status, key fields, and all data sources. Essential for integration development. Set generateIfMissing=true to auto-generate an AxDataEntityView XML template when no public entity is found.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tableName | Yes | Table name to find entities for, e.g. 'SalesTable', 'CustTable', 'VendInvoiceJour' | |
| maxResults | No | Maximum results (default: 15, max: 30) | |
| generateIfMissing | No | When true and no public entity is found, generates a new AxDataEntityView XML template for the table. Default: false. |