get_refresh_history
Retrieve recent refresh history for a PowerBI dataset to monitor status, timestamps, and error details. Use to track data freshness and troubleshoot refresh failures.
Instructions
Get refresh history for a PowerBI dataset.
Shows recent refresh operations including:
Status (Completed, Failed, Unknown)
Start and end times
Request ID and refresh type
Error messages (for failed refreshes)
Useful for monitoring data freshness and troubleshooting refresh failures.
Parameters:
dataset_id (required): The dataset ID
workspace_id (optional): Workspace ID. Omit for datasets in "My workspace"
top: Number of refresh records to return (default: 5, max: 60)
format: Response format - "markdown" or "json" (default: "markdown")
Returns: Formatted refresh history with status, timestamps, and error details for failed refreshes.
Example usage:
Get last 5 refreshes: dataset_id="abc123"
Get last 10 refreshes: dataset_id="abc123", top=10
Check specific workspace: dataset_id="abc123", workspace_id="workspace456"
Error handling:
If dataset_id not found, verify the ID using get_datasets
For permission errors, ensure service principal has read access
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dataset_id | Yes | ||
| workspace_id | No | ||
| top | No | ||
| format | No | markdown |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |