AndrewPla / TOPdeskPS

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

Get-TdIncident -OrderBy parameter not used #101

Open mabster opened 4 years ago

mabster commented 4 years ago

Prerequisites

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

Describe the bug Get-TdIncident has an "-OrderBy" parameter to control the sort order of returned incidents, but it is not passed to the URL and is therefore ignored.

To Reproduce Call Get-TdIncident -ResultSize 10 -OrderBy 'creation_date+ASC' -Verbose

Note that the returned incidents are the 10 newest incidents, rather than the 10 oldest, and that the URL displayed as part of the verbose output does not include an "order_by=" URL parameter.

Expected behavior The -OrderBy parameter should appear in the URL passed to TOPdesk.