Skip to content

Commit e41048c

Browse files
authored
Add files via upload (#408)
Add .xlsm (Microsoft Excel macro-enabled spreadsheet) to the type lookup. XLSM files are supported by Power BI but until now they could not be uploaded, refer to issue #349
1 parent 9fca9a3 commit e41048c

1 file changed

Lines changed: 10 additions & 9 deletions

File tree

ReportingServicesTools/Functions/Common/Get-ItemType.ps1

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,16 @@
66
)
77
switch ($FileExtension)
88
{
9-
'.rdl' { return 'Report' }
10-
'.rsds' { return 'DataSource' }
11-
'.rds' { return 'DataSource' }
12-
'.rsd' { return 'DataSet' }
9+
'.rdl' { return 'Report' }
10+
'.rsds' { return 'DataSource' }
11+
'.rds' { return 'DataSource' }
12+
'.rsd' { return 'DataSet' }
1313
'.rsmobile' { return 'MobileReport' }
14-
'.pbix' { return 'PowerBIReport' }
15-
'.xls' { return 'ExcelWorkbook' }
16-
'.xlsx' { return 'ExcelWorkbook' }
17-
'.kpi' { return 'Kpi' }
18-
default { return 'Resource' }
14+
'.pbix' { return 'PowerBIReport' }
15+
'.xls' { return 'ExcelWorkbook' }
16+
'.xlsx' { return 'ExcelWorkbook' }
17+
'.xlsm' { return 'ExcelWorkbook' }
18+
'.kpi' { return 'Kpi' }
19+
default { return 'Resource' }
1920
}
2021
}

0 commit comments

Comments
 (0)