Related list Software Discovery Model issue
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-06-2024 02:39 PM - edited 12-06-2024 02:45 PM
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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-07-2024 09:24 PM
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'));