set_lineage_tag
Assign a stable lineage tag to Power BI model objects (tables, columns, measures, etc.) to preserve identity across renames, schema syncs, and git merges.
Instructions
Set the LineageTag (a stable identity that survives schema sync / git merge across renames) on a model object. objectType = model | table | column | measure | hierarchy | partition | relationship; pass the object's table for column/measure/hierarchy/partition. Needs compatibility level 1540+ (auto-bumped, reported back).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tag | Yes | the lineage tag (any stable id, e.g. a GUID) | |
| name | Yes | the object's name | |
| table | No | the object's table (for column/measure/hierarchy/partition) | |
| sessionId | Yes | ||
| objectType | Yes | model | table | column | measure | hierarchy | partition | relationship |