Skip to content
This repository has been archived by the owner on Jun 17, 2024. It is now read-only.

Update manageRefresh.ps1 to fix error #35

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions manageRefresh.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@ if ($groupID -eq "me") {

# Refresh the dataset
$uri = "https://api.powerbi.com/v1.0/$groupsPath/datasets/$datasetID/refreshes"
Invoke-RestMethod -Uri $uri Headers $authHeader Method POST Verbose
Invoke-RestMethod -Uri $uri -Headers $authHeader -Method POST -Verbose

# Check the refresh history
$uri = "https://api.powerbi.com/v1.0/$groupsPath/datasets/$datasetID/refreshes"
Invoke-RestMethod -Uri $uri Headers $authHeader Method GET Verbose
Invoke-RestMethod -Uri $uri -Headers $authHeader -Method GET -Verbose