Hello James,
As you had indicated, I pulled the ticket handle and passed it into getRelatedList() to get a list handle.
As a second step, I invoked the getListValues(), with the sid, objectHandle, listName and numToFetch from the previous request.
But this call is failing with an error - invalid parameter.
I've commented out some additional parameters in this request and am not sure if that's the reason for the error.
Attaching the two requests screenshots, can you please see what I might be missing here?
Thank you!
Original Message:
Sent: 09-24-2019 12:56 PM
From: James Culpovich
Subject: CA Service Desk (SOAP API) - Create/Read worklog method?
Greetings!
To get the comments, you'll need 3 calls total. First, use getRelatedList passing in the SID, ticket handle, and "act_log_all". This returns a list handle. Second, use getListValues and pass in the list handle you received from the first step. This will return the activity log of the ticket. Lastly, use freeListHandles to release the generated list from memory.
EDIT: To add a comment, you'll want the LogComment call
Original Message:
Sent: 09-21-2019 12:59 PM
From: Ashok Ganpathi
Subject: CA Service Desk (SOAP API) - Create/Read worklog method?
Hi,
I am trying to integrate an automation tool with the Service Desk using the SOAP api.
I'm able to successfully login/logout, create incident and update the activity log using the documentation provided.
Is there a method or a way to update worklog or read worklog comments on the ticket?
Any suggestions or sample code would be helpful.
Thank you!