Search the Community
Showing results for tags 'example'.
Hi all, I'm trying to dynamically kick off change requests using the Hornbill api and using the logChangeRequest method, but in order for it to be logged correctly and the BPM to kick in I also need to feed it the expected answers from a progressive capture form. I've tried answering the questions using their field id within the "questions" param, however no matter which way I try to format them I get a FlowCode exception. I'm making the call within a PoSh script and have successfully logged Service Requests/Incidents, just this is currently giving me grief! Example params: $xmlmcParams = " <summary>$summary</summary> <description>$description</description> <requestType>Change Request</requestType> <teamId>STB/IT_#####/IT_#####/</teamId> <status>status.new</status> <sourceType>API</sourceType> <questions> <Question_1>Standard</Question_1> <Question_2>Low</Question_2> <Question_3>Standard process</Question_3> <Question_4>Low</Question_4> <Question_5>Standard process</Question_5> <Question_6>Roll back</Question_6> <Question_7>n/a</Question_7> </questions> <changeType>Standard</changeType>" Exception: FlowCode Exception (com.hornbill.servicemanager/entities/ChangeRequests/fc_ops/logChangeRequest): Input parameter validation error: The simple type value contains unexpected child elements at location '/methodCall/params/questions' Do I also need to supply the questionFieldMap param for this to work? If anyone has a working example of making a call which contains answers which would normally be fed from a prog capture that would be b e a u tiful.
Morning @Martyn Houghton @Dan Munns @Malcolm One of the questions on the Integration Round Table yesterday was: Can we write to a Hornbill Activity Stream (workspace) when a message has been added to a channel on Microsoft Teams? The answer is yes I've knocked up an example flow to demonstrate how that could work for you: You just need to replace the instance ID in the URI with that of your instance, the Authorization header needs a valid API key for an account that can write to the activity stream, and of course the activityStreamId in the body will need replacing with yours And this is what was written to the workspace in Hornbill: Note I'm using the HTML to Text node to strip out any HTML tags from the comment, as un-encoded HTML in the XML payload would cause the API call to fail. Hope this helps, Steve
Hopefully this is very simple question(s) for those of you experienced with Python, but this is a new avenue for me! At the moment I am just trying to get the Example (example.py) to run, but at the moment I just get syntax error when attempting to run it in Python 3.6.2. https://github.com/hornbill/pythonApiLib I think I have updated the correct lines to include our instance and API Key, but one question on the former is this just the instance name or the full URL? Also do I need to put the exception.py and xmlmc.py in a specific location in the Python folder so they are picked up. Cheers Martyn
The recently updated Hornbill Request Cleaner, version 1.9.0, archive for windows appear to be missing the example conf.json file. https://github.com/hornbill/goHornbillCleaner/releases/tag/1.9.0 https://wiki.hornbill.com/index.php/Hornbill_Clean_Utility Can the archive be updated to include the example file for this release? Cheers Martyn