Related list Software Discovery Model issue

Abigail
Tera Expert

Hello

I need to create a related list where the Applies to table is the Software Discovery Model table, and the Queries from table is the Software Installation table. The issue is with the code, which is not working.

 

current.addActiveQuery();
current.addQuery('discovery_model', parent.getValue('primary_display_name');

 

 

But is not working any idea?

1 REPLY 1

Runjay Patel
Giga Sage

Hi @Abigail ,

 

looks like syntax error,

 

use below code

// Add active query to filter by active records
current.addActiveQuery();

// Query the 'Software Installation' table to filter based on 'discovery_model' (the reference field)
current.addQuery('discovery_model', parent.getValue('primary_display_name'));