apply_rename_plan
Apply a rename plan to batch-rename Power BI objects and automatically update all DAX, M, and report references in a single atomic operation. Skips invalid renames with reasons.
Instructions
APPLY an audit_naming rename plan through the propagating rename machinery: planJson = audit_naming's renamePlan ({renames:[{objectType, table, oldName, newName}]}, a bare array also accepted). Rows that cannot apply (missing object, collision, malformed) are skipped WITH the reason; the survivors run as ONE atomic batch - TOM renames plus every DAX/M reference rewrite in a single SaveChanges, report bindings rewritten too when reportSource is given. One result row per rename.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| planJson | Yes | the rename plan json: audit_naming's renamePlan, {renames:[...]}, or a bare array of {objectType, table, oldName, newName} | |
| sessionId | Yes | ||
| reportSource | No | optional report to rewrite: a reportSessionId (open_report), a pbirSessionId (read_pbir), or a PBIR .pbix/PBIP folder path |