add_pbir_visual
Add a visual to a Power BI report (PBIR) page by specifying type, fields, and layout, then get the new visual's GUID.
Instructions
Add a visual to a PBIR page: a fresh GUID folder definition/pages//visuals//visual.json. The query (projections + prototypeQuery) is built by the shared query builder. fields = JSON array of {role,table,field,kind} (kind=column|measure; role=Category|Y|Values|Rows|Columns|...). Returns the new visual GUID name.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | ||
| y | No | ||
| page | Yes | page GUID name or displayName | |
| title | No | ||
| width | No | ||
| fields | No | JSON array of {role,table,field,kind} | [] |
| height | No | ||
| visualType | Yes | visual type id, e.g. clusteredColumnChart | tableEx | card | slicer | |
| pbirSessionId | Yes |