AndrewPla / TOPdeskPS

PowerShell module to interact with the TOPdesk API
MIT License
30 stars 12 forks source link

Invoke-TdMethod does not work with PowerShell 7 #128

Open ijustateacrayon opened 5 months ago

ijustateacrayon commented 5 months ago

Prerequisites

Put an X between the brackets on each line to confirm you have completed them:

Describe the bug Running "Invoke-TdMethod" in PowerShell 5 outputs many different fields, including id, filename, etc. Running "Invoke-TdMethod" in PowerShell 7 outputs no fields and does not send the command to TOPdesk

To Reproduce Steps to reproduce the behavior: Add an attachment to a file in TOPdesk with PowerShell v7 with this command set: https://github.com/AndrewPla/TOPdeskPS/blob/Development/TOPdeskPS/functions/General%20API/Send-TdIncidentFile.ps1

Expected behavior Expect output and information to be sent to topdesk

ijustateacrayon commented 5 months ago

To be more specific, it seems to be around the -file param