Hello,
I have .xlsb file which has to be converted to .xlsx file so that workflow is able to perform further logic. I have PowerShell script which I would like to embed in workflow, so that it does conversion and creates xlsx file before workflow starts execution. Also, I would like to pass file name as an argument. How can I embed code below in workflow (not import script)?
Here is my script:
$file = 'C:\Users\Test\Desktop\Example'
$xlApp = New-Object -Com Excel.Application
$xlApp.Visible = $false
$xlApp.Workbooks.Open($file + '.xlsb').SaveAs($file, [Microsoft.Office.Interop.Excel.xlFileFormat]::xlOpenXMLWorkbook)
$xlApp.Quit()
Thank you for your time.