Jump to content

Search the Community

Showing results for tags 'xmlmc'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Hornbill Platform and Applications
    • Announcements
    • Blog Article Discussions
    • General Non-Product Discussions
    • Application Beta Program
    • Collaboration
    • Employee Portal
    • Service Manager
    • Project Manager
    • Supplier Manager
    • Customer Manager
    • Document Manager
    • Configuration Manager
    • Timesheet Manager
    • Live Chat
    • Board Manager
    • Mobile Apps
    • System Administration
    • Integration Connectors, API & Webhooks
    • Performance Analytics
    • Hornbill Switch On & Implementation Questions
  • About the Forum
    • Announcements
    • Suggestions and Feedback
    • Problems and Questions
  • Gamers Club's Games
  • Gamers Club's LFT

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Organisation


Location


Interests


AIM


MSN


Website URL


ICQ


Yahoo


Jabber


Skype

Found 9 results

  1. Being fairly new to Python I am trying to work out how to populate the xmlmc object with the required Input Parameters in order to call the 'entityUpdateRecord' in particular the 'primaryEntityData' . I can see what is needs via the API documentation but there is no Python code examples. https://api.hornbill.com/data/?op=entityUpdateRecord I am wanting to be be able to populate a number of custom field values on a request. Has anyone got any Python code examples that would help? Cheers Martyn
  2. We have had a BPM fail with the below error nothing has changed within the BPM recently and all other tickets have not had this issue, after retrying the last step it sends out the notification email it is complaining about but does not progress. Any help would be great thanks.
  3. Hello, Starting today we have been getting the following error messages on a range of tickets: Xmlmc method invocation failed for BPM invocation node 'stage-b656dda2-4478-4afb-5baa-d1b8ad58c648/flowcode-8b6ec817-710e-4646-a47b-d46435094188': 0200 apps notifyEmailCustomer FlowCode Exception (com.hornbill.servicemanager/entities/Requests/fc_bpm/notifyEmailCustomer): nodeName: Exception; nodeId: acd1ebbe-1cd9-4aed-bf14-50ce53f9a013; At 279/1: "Uncaught FCSException: The email template specified is invalid. Please contact your Hornbill Administrator." throw(e); _fc_node_exec_acd1ebbe_1cd9_4aed_bf14_50ce53f9a013 When checking the the external email template associated to the node there is no issue with it, neither the email template or BP has been changed recently.
  4. I'm trying to carry out a simple asset update of a Computer Peripheral and it's proven quite hard work. I only want to change the "location" of the asset. In order to achieve success I couldn't just submit the "required" fields as the FlowCode refused to validate the data that must already be part of the record. So I have had to populate all kinds of other fields to get it to work. Required fields are: assetId, name, type, version But I actually had to fill in all of these. $peripheral = [ 'acqMethod' => 1, 'actualRetireDate' => '1970-01-01 00:00:00', 'assetId' => 3533, 'cost' => 0, 'deprecMethod' => 0, 'deprecStart' => '1970-01-01 00:00:00', 'deprecValue' => 0, 'disposalPrice' => 0, 'location' => 'Bedroom', 'locationType' => 0, 'maintenanceCost' => 0, 'maintenanceRef' => '', 'name' => 'CBC8522', 'operationalState' => 0, 'orderDate' => '1970-01-01 00:00:00', 'receivedDate' => '1970-01-01 00:00:00', 'residualValue' => 0, 'scheduledRetireDate' => '1970-01-01 00:00:00', 'siteId' => 1, 'sourceImage' => '', 'state' => 0, 'type' => 8, //'Monitor', 'version' => 0, 'warrantyExpires' => '1970-01-01 00:00:00', 'warrantyStart' => '1970-01-01 00:00:00', 'wireless' => '' ]; Which produces the XML: <methodCall service="apps/com.hornbill.servicemanager/AssetsComputerPeripheral" method="updateAssetComputerPeripheral"><params> <acqMethod>1</acqMethod> <actualRetireDate>1970-01-01 00:00:00</actualRetireDate> <assetId>3533</assetId> <cost>0</cost> <deprecMethod>0</deprecMethod> <deprecStart>1970-01-01 00:00:00</deprecStart> <deprecValue>0</deprecValue> <disposalPrice>0</disposalPrice> <location>Bedroom</location> <locationType>0</locationType> <maintenanceCost>0</maintenanceCost> <maintenanceRef></maintenanceRef> <name>CBC8522</name> <operationalState>0</operationalState> <orderDate>1970-01-01 00:00:00</orderDate> <receivedDate>1970-01-01 00:00:00</receivedDate> <residualValue>0</residualValue> <scheduledRetireDate>1970-01-01 00:00:00</scheduledRetireDate> <siteId>1</siteId> <sourceImage></sourceImage> <state>0</state> <type>8</type> <version>0</version> <warrantyExpires>1970-01-01 00:00:00</warrantyExpires> <warrantyStart>1970-01-01 00:00:00</warrantyStart> <wireless></wireless> </params></methodCall> I can understand the validation reasoning, but it would seem that all this is bypassed during the asset import process, which is probably going to leave a minefield for later. My only recourse would be to search for the asset, retrieve all the current values, validate them locally and populate them where necessary, then resubmit the data just to update the one field I want to update. If the fields aren't set as mandatory surely the flowcode shouldn't be acting like this?
  5. I thought I'd spend some time tidying up my PHP implementation of Invoke() as I was using little in the way of error checking and was pretty much dumping the response back to the calling functions. It works, but it's not as I'd like. So I started adding in some error checking on the responses and found that I'm at a loss as to what Invoke() is actually returning. My initial understanding was that by submitting the headers and xml parameters I'd be getting back json as requested in the header. 'Accept' => 'Application/json', But it looks like this isn't necessarily the case. If an error is returned then the response looks like xml. So then I thought I'd best check the response header for the type returned and use that to determine what I got back. So I didn't try parsing xml as json. Seemed straight forward, but then I ran into apps/com.hornbill.servicemanager/Requests::smGetRequests() and apps/com.hornbill.core::getCoWorkersList() and that plan went out of the window. It seems these return xml with json embedded in it as params. So the data returned, even though I ask for json, could be json, could be xml or could be xml with json in. That doesn't seem too smart. Is this really how it works or am I doing something wrong?
  6. Is there a query or task function that will return a list of all tasks, not just those assigned to you? I'm after a way of looking for tasks assigned to a particular user, or all open tasks.
  7. com.hornbill.core::getCoWorkersList The documentation seems to imply that all of the parameters are optional. This doesn't seem to be the case. If I leave any out the call fails with a Flow Code error. <?xml version="1.0" encoding="utf-8" ?> <methodCallResult status="fail"> <state> <code>0200</code> <service>apps</service> <operation>getCoWorkersList</operation> <error>FlowCode Exception (com.hornbill.core/flowcode/fc_ops/getCoWorkersList): nodeName: CoWorker Search; nodeId: 2b21fc1e-de0c-41a7-b536-74c7ed3690da; At 170/1: &quot;Uncaught EspMethodCall::invoke: Operation[data::queryExec] queryParams validation error: Non-digit characters found in the element &lt;rowstart&gt;, the expected data type is &apos;integer&apos;. The value was [undefined] at location &apos;/methodCall/params/queryParams/rowstart&apos;&quot; throw(e); _fc_node_exec_2b21fc1e_de0c_41a7_b536_74c7ed3690da</error> </state> </methodCallResult>
  8. Where can I get this? It's reference in the self documenting api and without it the api is becoming less useful. For example: data::entityBrowseRecords - What can I pass as an entity to get the entity data? apps/com.hornbill.servicemanager/Asset::searchAssetGlobal - what can I pass as filter to get the list of assets I'm looking for? data::queryExec - What are the names of the available queries to pass as queryName? There's only so much guessing I can do.
  9. Looking at the documentation for the api I see PHP examples make use of a class ESP. Is this class publically available? It would save me a lot of time translating from go. $the_transport = new \Esp\Transport("", "xmlmc", "dav"); $mc = new \Esp\MethodCall($the_transport); try {
×
×
  • Create New...