ServiceDesk Plus - API - GET_REQUEST, Error when performing required operation.</

ServiceDesk Plus - API - GET_REQUEST, Error when performing required operation.</

Hello,

I’m using the GET_REQUEST operation to get information from requests.

For about a month now this have been working fine. I specify the case number in the Uri and the Parameter of the body and get an output with all the information i need about the case.

 

But today, on one single case, we are receiving an error back from the operation.

<operation name="GET_REQUEST"><result><status>Failed</status><message>Error when performing required operation.</message></result></operation>

 

Any case number before or after works great. But this single case just will not work. 

We've been trying to figure out if there is anything different about just this case but can’t see anything wrong. It's a normal request based a template for a new userAnyone know what might be the problem with just this case?


Below is the code we've been using for weeks now:


$Case = "14247"

$OPERATION = "GET_REQUEST"

$inputData = @"
<Operation>
<Details>
<parameter>
<name>workorderid</name>
<value>$Case</value>
</parameter>
</Details>
</Operation>
"@

$postParams = @{OPERATION_NAME="$OPERATION";TECHNICIAN_KEY=$API_Key;INPUT_DATA=$inputData}
$get_response = Invoke-WebRequest -Uri $URI -Method POST -Body $postParams
[xml]$responseContent = $get_response.Content
                New to ADManager Plus?

                  New to ADSelfService Plus?