File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -43,12 +43,14 @@ function Get-FabricDatasetRefreshes {
43
43
# Check if the dataset is refreshable.
44
44
if ($di.isrefreshable -eq " True" ) {
45
45
# Get a list of all the refreshes for the dataset.
46
- $results = ( Invoke-FabricRestMethod - Method get - uri (" datasets/" + $di.id + " /Refreshes" ) | ConvertFrom-Json )
46
+ $results = Invoke-FabricRestMethod - Method get - PowerBIApi - uri (" datasets/" + $di.id + " /Refreshes" )
47
47
48
48
# Create a PSCustomObject with the information about the refresh.
49
49
$refresh = [PSCustomObject ]@ {
50
50
Clock = Get-Date
51
+ WorkspaceId = $workspaceId
51
52
Workspace = $w.name
53
+ DatasetId = $di.Id
52
54
Dataset = $di.Name
53
55
refreshtype = $results.value [0 ].refreshType
54
56
startTime = $results.value [0 ].startTime
Original file line number Diff line number Diff line change @@ -66,9 +66,8 @@ Function Invoke-FabricRestMethod {
66
66
67
67
if ($Uri -notmatch ' ^https?://.*' ) {
68
68
$Uri = " {0}/{1}" -f $baseUrl , $Uri
69
- if ($PowerBIApi ) {
70
- Write-Message - Message " PowerBIApi param is ignored when full Uri is provided." - Level Warning
71
- }
69
+ } elseif ($PowerBIApi ) {
70
+ Write-Message - Message " PowerBIApi param is ignored when full Uri is provided." - Level Warning
72
71
}
73
72
Write-Message - Message " Target API Endpoint: $Uri " - Level Verbose
74
73
You can’t perform that action at this time.
0 commit comments