Jim Posted November 21 Posted November 21 Could h_last_logged_on be returned by the API for the Asset entity please
ArmandoDM Posted November 21 Posted November 21 Good afternoon @Jim the property h_last_logged_on is only defined for the entity AssetsComputer. If you run entityBrowseRecords on the entity AssetsComputer, then h_last_logged_on will be returned. Regards Armando
Jim Posted November 21 Author Posted November 21 I did not know I could go to that level Will test and use if it has everything I need, Thank you for the quick response
Jim Posted November 21 Author Posted November 21 Ahhh, so in theory yes, for my purpose no. I'm filtering on substate and record state for my query and AssetsComputer will not allow them in the criteria
Jim Posted November 21 Author Posted November 21 Bit of background on the use case, We are automating the logging of device replacements for disposals or end of life assets, Initially we query the assets from hornbill for any of a certain state and substate - we then filter these out based on the order date + 5 years being in the past. We also wanted to add an extra filter based on the last used date and then it logs requests for each asset due for replacement into Hornbill to log we use the following asset information Order Date - Asset ID - Owned by - purpose - Tag - and name and ideally add last logged on into this
Jim Posted November 25 Author Posted November 25 @ArmandoDM Even when getting an individual asset I am not able to return all of the data for that asset and the only documented API's are these or the one I am currently using
Jim Posted November 25 Author Posted November 25 okay so I'm able to achieve what I want by querying a group of assets using 'Asset' and then I'm having to query again individually using 'AssetsComputer'
ArmandoDM Posted November 27 Posted November 27 Good afternoon @Jim yes I think its a good solution. Regards Armando
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