Jump to content

Ben Paddick

Hornbill Users
  • Posts

    26
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

Ben Paddick's Achievements

Apprentice

Apprentice (3/14)

  • First Post
  • Collaborator
  • Conversation Starter
  • Week One Done
  • One Month Later

Recent Badges

4

Reputation

  1. @Ehsan thanks again for all your help. We are now able to continue developing our solution!
  2. @Ehsan That worked!!! So it seems "customFields" a required field even if just {}?
  3. Hi @Ehsan Thank you for getting back to me. FYI - I am using the Power Shell module to interact with the API. If I test with trying to update "h_external_ref_number" and/or "h_description" I do not get any errors back. These are the values: $xmlmcOutput.status = "ok" $xmlmcOutput.error = NULL $xmlmcOutput.exceptionName = NULL $xmlmcOutput.exceptionDescription = NULL I have cut the script right back to just the following f Add-Param "requestId" "SR00167255" #Add-Param "h_summary" "Summary blah blah again" Add-Param "h_description" "description blah blah again" Add-Param "h_external_ref_number" "1234567" #Add-Param "customFields" "{"h_custom_p": "someValueA"}" # Invoke XMLMC call - Get all Service Request that match search query, output returned as PSObject $xmlmcOutput = Invoke-XMLMC "apps/com.hornbill.servicemanager/Requests" "update" # Read output status if($xmlmcOutput.status -eq "ok") { # "No error returned - here are outputs" "API Call Status : " + $xmlmcOutput.status "APIError Returned : " + $xmlmcOutput.error "API Excption Name : " + $xmlmcOutput.exceptionName "API Excption Description : " + $xmlmcOutput.exceptionDescription } else { "An error was returned - here are outputs" "API Call Status : " + $xmlmcOutput.status "APIError Returned : " + $xmlmcOutput.error "API Excption Name : " + $xmlmcOutput.exceptionName "API Excption Description : " + $xmlmcOutput.exceptionDescription } I am running the connection to the API using an API key for my account. I believe this should therefore have the same permissions as what I do via the GUI? Any further ideas? Does this work for you within your instance? Many thanks Ben
  4. Hi Hornbill Integration team! @Ehsan @Steve G I am still struggling with the above issue. I am not able to update using op=update. The API staus is ok so it looks to have submitted. Any ideas? Is this working for others? Are there any special permissions? I can update the fields via the GUI using my account. Thanks Ben
  5. Anyone know why I am not able to use the update method to post data? There is no error but no data is saved on request after post. Thanks
  6. So I have tested the API "update" method Ehsan has kindly suggested. The method accepts the request parameters but does not update the actual details of the SR. I have tried using " requestId" with combination of the following optional parameters "h_summary", "h_description", " h_external_ref_number" and "customFields". Looks like a bug to me as the other request update API mehtods like Hi updateReqTimeline work fine. Maybe an expert like @Steve G can shed some light?
  7. Ehsan Thanks you so much for these pointers. I will give it a go now. Ben
  8. I have a scenario where I would like to post text data capture from a client into a Service Request through the API. At present I would like to use either 1) A request custom attribute to store the data Not sure of what Hornbill Service Manager Requests function is best to do this. or 2) A request activity stream entry with a specific type I have successfully done this using "https://api.hornbill.com/apps/com.hornbill.servicemanager/Requests?op=updateReqTimeline" However, once the data is posted I then want to be able to search / find the values via the API For both scenarios above I am not sure of the correct Requests function to do this. Any assistance would be greatly appreciated. Kind Regards Ben
  9. Hi. When trying to update the sub status of an SR using "Operation - com.hornbill.servicemanager/Requests::smUpdateStatus" I get the following message: API Call Status : fail Error Returned : FlowCode Exception (com.hornbill.servicemanager/entities/Requests/fc_ops/smUpdateSubstatus): nodeName: Set the Output; nodeId: 0a2e4bdf-e634-46a5-afc2-39a985bebbb2; At 264/ 1: "Uncaught TypeError: Cannot read property 'activityId' of undefined" throw(e); _fc_node_exec_0a2e4bdf_e634_46a5_afc2_39a985bebbb2 When trying to update the sub status of an SR using "Operation - com.hornbill.servicemanager/Requests::smUpdateStatus" the sub status does not change and no error is produced. I am however able to successfully change the status of the SR (Open > On Hold > Open). When using this method i submit both Status and Sub Status ID. Any ideas? There does not appear to be much to go wrong within the request. So is this an API bug or a back end configuration issue? Many Thanks Ben
  10. Hi all, I am trying to automate the export of request data and more importantly the responses to questsions using APIs. So far I can get all requests that match search query using : "apps/com.hornbill.servicemanager/Requests" "searchRequests" I can then loop through each request getting various details using : "apps/com.hornbill.servicemanager/Requests" "smGetReqDetails2" This enables me to return the number of questions completed but not the actual responses. Is there another API that has this feature that I can't find? Many Thanks Ben
  11. @Victor You are truely the Hornbill Sith Lord! That's worked perfectly! @AlexTumber - Thanks for your help as well. You got me this far. Maybe the API could benefit from a more descriptive error message for idiots like me?
×
×
  • Create New...