dmf_transform_excel
Transform a multi-sheet Excel (.xlsx) into DMF-ready rows using a data-driven JSON mapping -- equivalent to FO_TransformExcelForDMF. NO FO credentials required (offline transform). Provide the workbook via ONE of: sourceUrl (Blob/SharePoint SAS URL or Graph downloadUrl), filePath (local .xlsx) or fileContentBase64 (inline upload, small files only). The mappingJson spec supports: sourceSheet, targetSheet, columnMappings {source->target}, conditionalValues [{sourceColumn,matches[],values{}}], staticValues{}, deduplicateOn[] and autoGeneratedFields (array OR object keyed by sheet, e.g. {"Products V2":["PRODUCTNUMBER"]}) which are removed so FO generates them. Returns CSV (default, feed to dmf_import_file) or JSON (feed to odata_upsert_rows). Set listSheetsOnly=true to just inspect the workbook's sheet names.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| format | No | Output format: 'csv' (default) or 'json'. | csv |
| filePath | No | Local path to a .xlsx file. Provide one of sourceUrl/filePath/fileContentBase64. | |
| sheetName | No | Override the source sheet name. Empty = use mappingJson.sourceSheet, else the first sheet. | |
| sourceUrl | No | URL to the .xlsx (Blob/SharePoint SAS or Graph downloadUrl). Provide one of sourceUrl/filePath/fileContentBase64. | |
| outputPath | No | Optional file path to also write the full transformed result to. | |
| mappingJson | No | Mapping spec JSON (columnMappings, conditionalValues, staticValues, deduplicateOn, autoGeneratedFields, sourceSheet). Optional when listSheetsOnly=true. | |
| listSheetsOnly | No | If true, only list the workbook's sheet names (diagnostic). mappingJson not required. | |
| fileContentBase64 | No | Base64-encoded .xlsx content (inline upload, small files). Provide one of sourceUrl/filePath/fileContentBase64. |