Skip to content

Commit

Permalink
Exclude Linked Reports (#393)
Browse files Browse the repository at this point in the history
Exclude Linked Reports from being downloadedd by the function Out-RsRestCatalogItemId because it cannot download them anyway. It was causing bugs when wanting to download content from Report Server (type was not invalid).
  • Loading branch information
Zkw-Alban authored Feb 21, 2023
1 parent 51ad6ab commit 24c9eb3
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,13 @@ function Out-RsRestCatalogItemId

Process
{
#exlude Linked Reports
if ($RsItemInfo.Type -eq 'LinkedReport')
{
Write-Verbose "$($RsItemInfo.Path) is a LinkedReport and is ignored."
return
}

if ($RsItemInfo.Type -ne 'MobileReport')
{
$itemId = $RsItemInfo.Id
Expand Down

0 comments on commit 24c9eb3

Please sign in to comment.