set_card_image
Set an image on a card visual's hero/callout in Power BI. Accepts local files or URLs and controls image fit for accurate rendering.
Instructions
Set a hero/callout IMAGE on a cardVisual (the new card's image element). imageUrlOrPath = a local file (embedded) or an http(s)/data URL. fit = Fit|Fill|Normal. Verify the render in Desktop.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fit | No | Fit|Fill|Normal | |
| page | Yes | page name or displayName | |
| visual | Yes | cardVisual name | |
| imageUrlOrPath | Yes | local image file or http(s)/data URL | |
| reportSessionId | Yes |