Reference Qualifier for Asset Model

ShivangiC
Tera Contributor

Hello,

We have a field Asset Category (reference field) in cmdb_model_category table, which should only display records where Active(custom field) is true and category Id is 1. [This part is done]

Another field Asset Model, must only display records whose Model Category  is same as entered  in the above mentioned field by the user. What should be written in its reference qualifier ?

1 ACCEPTED SOLUTION

Ankur Bawiskar
Tera Patron
Tera Patron

@ShivangiC 

try this

// give correct field names
javascript:'model_category=' + current.asset_category;

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

View solution in original post

2 REPLIES 2

Rakesh18081
Tera Expert

Try below code in Asset Model field reference qualifier "model_category=javascript:getRefRecord('asset_category')"

Ankur Bawiskar
Tera Patron
Tera Patron

@ShivangiC 

try this

// give correct field names
javascript:'model_category=' + current.asset_category;

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader