Jump to content

Recommended Posts

Posted

We're looking to do an audit on some of the older assets we have stored in Hornbill, and as part of this I'm trying to retrieve a list of linked requests (including resolved/closed) for each asset.

I'm sure this could be done via the reporting feature, but would likely involve a large report containing more than just the assets we're investigating, hence I'm looking at using the API to churn through a list of specific assets instead.

I've had a look at the "getAssetHistory" API, which apparently should return an "auditRelationshipDetails" outcome parameter, but this hasn't been returned on any of the assets I've tried it on (I've tried on assets that have related open requests and assets where all linked requests are resolved/closed). Can I please have confirmation if this parameter should contain related requests, and if so, if there is anything else I need to do to make retrieve this information with this API?

Posted

Hi @CraigP,  This API will output the audit relationship details for linked assets, it does not return links between requests and assets.  In order to extract that data the simplest method would be to use a report.

If you still want to utilise APIs to do this then you may find the API data:entityBrowseRecords2 useful with the AssetsLinks entity, as it will return a list of asset links which will include requests.

Regards,

Ricky

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...