dmf_import_file
Bulk-import a CSV file into a D365 F&O entity through the Data Management package REST API. Builds the package (Manifest + header + CSV) in memory, uploads it to Azure blob, then calls ImportFromPackage which AUTO-CREATES the data project from the manifest. Runs in batch; the tool polls until completion and returns the final status plus an error-keys file URL when rows fail. Provide either filePath (a .csv on disk) or inline csvContent. Resolve the entity name from the KB (find_entity_for_table) -- do not invent it.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| execute | No | Execute the import after staging (true) or stage only (false). Default true. | |
| filePath | No | Path to a .csv file on disk. Provide this OR csvContent. | |
| overwrite | No | Overwrite an existing project definition with the same id. Default true. | |
| csvContent | No | Inline CSV content (header row + data). Provide this OR filePath. | |
| entityName | Yes | Target entity name as known to DMF (the entity, not the OData set), e.g. 'Customers V3'. | |
| legalEntity | Yes | Legal entity / company id to import into, e.g. 'USMF'. | |
| definitionGroupId | No | DMF definition group (data project) id. Default: auto-generated from entity + timestamp. | |
| pollTimeoutSeconds | No | Max seconds to poll for completion before returning the executionId. Default 300. |