samwoo Posted September 1, 2017 Posted September 1, 2017 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
Steve Giller Posted September 1, 2017 Posted September 1, 2017 Wouldn't a WebHook for the Service Manager application and an event source of Entity::Asset::Updated fit the bill here? 1
James Ainsworth Posted September 1, 2017 Posted September 1, 2017 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. Regards, James 1
samwoo Posted September 2, 2017 Author Posted September 2, 2017 Hi @DeadMeatGF and @James Ainsworth, Many thanks, I did let the Integrations Officer know yesterday and he was impressed by how much can be done via the Webhooks. Many thanks for your help and assistance! Thanks, Samuel 1
samwoo Posted September 19, 2017 Author Posted September 19, 2017 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
TrevorKillick Posted September 19, 2017 Posted September 19, 2017 Hi @samwoo This is by design the payload in the WebHook shows you the data that has been changed, at the moment there are no plans to include the un changed record data this will have to be obtained using the data::entityGetRecord API. Kind Regards Trevor Killick
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