unpack_to_source
Unpack a .pbix into a deterministic, text-only source tree (TMDL and report JSON) that diffs cleanly under git, making Power BI files version-controllable.
Instructions
Unpack a .pbix into a deterministic, text-only, git-committable source tree: Model/definition (TMDL from the live session model) + Report/ (legacy Layout canonicalised to Layout.json, or the full PBIR definition tree). Same inputs always produce byte-identical output, so the tree diffs cleanly under git. Refuses to overwrite a folder that is not empty or a previous unpack.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pbixPath | Yes | path to the .pbix (supplies the report half) | |
| sessionId | Yes | sessionId from connect_model (the live model supplies the TMDL half) | |
| outputFolder | Yes | output folder for the source tree (wiped only if empty or a previous unpack) |