/build/static/layout/Breadcrumb_cap_w.png

Asset Custom Field Query

We created a custom field called Docking Station under Assets-Monitors.  we want the field to query asset type "Laptop Docks" and be selectable of the Laptops Docks "Asset Unique ID".


0 Comments   [ + ] Show comments

Answers (4)

Posted by: Hobbsy 2 years ago
Red Belt
0

Maybe try (writing this on the fly)

query:SELECT ASSET.NAME FROM ASSET WHERE ASSET.ASSET_TYPE_ID = 10202

I think that is right but I will check on Monday when I turn my system back on ;o)

Posted by: jjayko 2 years ago
Orange Belt
0

currently have the following in the Available values with Single select chosen

query: SELECT ASSET.ID FROM ASSET_DATA_x ORDER BY ASSET_ID

the asset type also has 2 subtypes

Posted by: Hobbsy 2 years ago
Red Belt
0

Add a WHERE to the statement, where asset type id is equal to the docking station asset type. You can make these SQL statements quite complex ;o)

Posted by: jjayko 2 years ago
Orange Belt
0

ok so i have query:SELECT ASSET_UNIQUE_ID FROM ASSET where ASSET_TYPE_ID = 10202 in the field after saving and going to the custom field it just shows the query in the drop down. I know queries like this work in ticket custom fields. doe it not work in asset custom fields?

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login

Share

 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ