set_annotation
Set custom name/value annotations on Power BI model objects like tables, columns, measures, and partitions. Preserve metadata through serialization for tooling like Tabular Editor.
Instructions
Set a name/value annotation on any model object: objectType = model | table | column | measure | hierarchy | partition. Pass the object's table for column/measure/hierarchy/partition. Replaces a same-named annotation. Annotations are free-form metadata that survive serialization (used by tooling like Tabular Editor).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | annotation name | |
| table | No | the object's table (required for column/measure/hierarchy/partition) | |
| value | Yes | annotation value | |
| sessionId | Yes | ||
| objectName | Yes | the object's name (the model name for objectType=model) | |
| objectType | Yes | model | table | column | measure | hierarchy | partition |