AndrewPla / TOPdeskPS

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

Cannot create secondLine incident #89

Closed SCUSER1 closed 5 years ago

SCUSER1 commented 5 years ago

Hi,

i cannot create a seconline inciden with New-TdIncident.

If I execute the command New-TdIncident -status "secondLine" [...] incl. other parameters like callerlookup, briefdescription your module creates a request body with "status": "secondline", but the result will be: status : firstLine.

If I add OperatorId and OperatorGroupId the command fails with the messages: Invoke-RestMethod : [{"message":"The given operatorgroup cannot be set as operatorgroup of the card"},{"message":"Given operator does not belong to given operator group"}]

Although both operator and operatorgroup are allowed to create secondline tickets.

Any idea whats wrong?

AndrewPla commented 5 years ago

Great find! It looks like this is caused by a case-sensitivity issue. Version 0.1.3 of the module has the updated code. Install-Module TOPdeskps -repository PSGallery or you can copy the files from this repository. If you encounter any other issues please reach out.