Jump to content

Web Call on Asset Change


Recommended Posts

Hello,

A colleague from our Integration Team has a query:

Quote

Is it possible in Hornbill to configure a web call when an Asset is changed?  Specifically if an asset is assigned (Used By / Owned By) could hornbill make a web call to an end point we specify with selected information (User, Asset Number, Operating System etc)?

Please advise,

Samuel

Link to comment
Share on other sites

Hi @samwoo

As DeadMeatGF suggests you should be able to use the Asset Update for this.  This will create a web call on all updates, so your end point might need a way to filter it down to just the criteria that you are looking for such as when it is assigned.  This is done in Administration under System->Settings->Webhooks.

assetwebhook.PNG

 

Regards,

James

  • Like 1
Link to comment
Share on other sites

  • 3 weeks later...

Hello,

I have a query from the Integrations Officer looking into Integrations:

Quote

Hi Sam,

 

I have had a little play with the webhooks from hornbill on Asset Update.  While this is useful there is one small limitation hat would complicate any design if we wanted to use.  Below is an example of the information posted, on an Asset update, as you can see we are getting the internal Hornbill Asset number.


<?xml version="1.0" encoding="utf-8" ?>
<onEntityEvent>
        <eventSource>urn:webhook:entity:Asset:update</eventSource>
        <callingSessionId>U2017091910306496</callingSessionId>
        <eventTime>2017-09-19 11:32:11Z</eventTime>
        <actionBy>keidre</actionBy>
        <actionByName>Keith Drew</actionByName>
        <entity>Asset</entity>
        <record>
               <h_pk_asset_id>6247</h_pk_asset_id>
               <h_floor>1</h_floor>
               <h_last_updated>2017-09-19T11:32:11</h_last_updated>
        </record>
</onEntityEvent>

What would be really useful would be for the complete Asset record to be posted by the web hook, not just the information that has changed as is currently the case. Could you please ask on the Hornbill forum, if it is possible for a webHook to post the complete record.

 

If it is not then we would have to utilize the API on top of a webHook so we can query the asset that has been updated.

 

Regards

 

Keith Drew

Please advise.

Samuel

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...