declare_changed_property
Protect property overrides from schema sync by marking them as locally changed, preventing resets on refresh for composite/Direct Lake objects.
Instructions
Mark a property as locally CHANGED so a schema sync does not wipe your override on a composite / Direct Lake object (name, isHidden, formatString, summarizeBy etc. are otherwise treated as source-owned and reset on refresh). objectType = model | table | column | measure | hierarchy | partition | relationship; pass the object's table where needed.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | the object's name | |
| table | No | the object's table (for column/measure/hierarchy/partition) | |
| property | Yes | the property to protect, e.g. Name, IsHidden, FormatString, SummarizeBy | |
| sessionId | Yes | ||
| objectType | Yes | model | table | column | measure | hierarchy | partition | relationship |