Giuseppe Iannacone Posted October 5, 2022 Posted October 5, 2022 Hi, Which API can be used to retrieve the questions and answers associated to a service request/indident? Thanks
Steve G Posted October 5, 2022 Posted October 5, 2022 Hi @Giuseppe Iannacone, The API you need is: https://api.hornbill.com/apps/com.hornbill.servicemanager/Questions?op=queryExec And here's an example payload: <methodCall service="apps/com.hornbill.servicemanager/Questions" method="queryExec"> <params> <queryName>getRequestQuestions</queryName> <requestId>SR00013867</requestId> <rowstart>0</rowstart> <limit>100</limit> <resultType>allData</resultType> </params> </methodCall> Cheers, Steve
Giuseppe Iannacone Posted October 10, 2022 Author Posted October 10, 2022 @Steve G would you be so kind to indicate which APIs need to be called to retrieve the comment posted as Reply/update? thank you!
Giuseppe Iannacone Posted October 13, 2022 Author Posted October 13, 2022 @Steve G any update on the topic above? also we are using https://wiki.hornbill.com/index.php?title=XMLMC_API_File_Upload_Sample this documentation for uploading files on a request, and lately the uploaded file seems to be currepted after the upload. Thank you.
Steve G Posted October 20, 2022 Posted October 20, 2022 Hi @Giuseppe Iannacone, The API to get posts and comments from an activity stream (timeline) is: https://api.hornbill.com/activity/?op=activityStreamQueryItem Re: your other question, I'm not sure why the uploaded file would be corrupted. We use a similar process in our import utilities, check the code here against yours as this is working in production: https://github.com/hornbill/goLDAPUserImport/blob/master/image.go Cheers, Steve
philip ross Posted December 5, 2023 Posted December 5, 2023 On 05/10/2022 at 09:01, Steve G said: Hi @Giuseppe Iannacone, The API you need is: https://api.hornbill.com/apps/com.hornbill.servicemanager/Questions?op=queryExec And here's an example payload: <methodCall service="apps/com.hornbill.servicemanager/Questions" method="queryExec"> <params> <queryName>getRequestQuestions</queryName> <requestId>SR00013867</requestId> <rowstart>0</rowstart> <limit>100</limit> <resultType>allData</resultType> </params> </methodCall> Cheers, Steve Hi, I want to do the same, but that link doesn't work anymore. I wanted to call this from powershell? My aim is to get hold of the relatedentitydata ?
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now