Skip to content

Add files via upload#1

Merged
Periscope-NZ merged 1 commit intomasterfrom
Periscope-NZ-xlsm-1
Jun 9, 2023
Merged

Add files via upload#1
Periscope-NZ merged 1 commit intomasterfrom
Periscope-NZ-xlsm-1

Conversation

@Periscope-NZ
Copy link
Owner

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 microsoft#349

Fixes microsoft#349.

Changes proposed in this pull request:

  • Adds a single line to Get-ItemType.ps1 for the .xlsm file type
  • Minor reformat of layout (spacing) for neatness

How to test this code:

  • Create an .xlsm file in Excel
  • Upload the file using `Write-RsRestCatalogItem -ReportPortalURI $youruri -Path 'C:\Temp\Just_a_test2.xlsm' -RsFolder $DestFolder'
    Previously this would fail with an error message - (400) Bad Request. After this change to Get-ItemType.ps1 it seems to run without any issues.

Has been tested on (remove any that don't apply):

  • Powershell 5.1
  • Windows Server 2016

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 microsoft#349
@Periscope-NZ Periscope-NZ merged commit 560709b into master Jun 9, 2023
@Periscope-NZ Periscope-NZ deleted the Periscope-NZ-xlsm-1 branch June 9, 2023 08:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Write-RsRestCatalogItem does not accept xslm files

1 participant