export_dataflow_modeljson
Exports a Power BI dataflow model.json file to disk from entity definitions, including M queries and attribute data types.
Instructions
Export a Power BI dataflow model.json to disk from a set of entity definitions. entities is a JSON array of {name, m, attributes:[{name,dataType}]} where m is the entity's full M query and dataType = string|int64|double|decimal|date|dateTime|time|boolean|guid. The query mashup is embedded at the root pbi:mashup.document. FLAG: the inner pbi:mashup layout is best-known, NOT verified against a real export.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| culture | No | culture (default en-US) | |
| entities | Yes | JSON array of {name, m, attributes:[{name,dataType}]} | |
| sessionId | Yes | ||
| outputPath | Yes | output file path for model.json | |
| dataflowName | Yes | the dataflow name |