Script Include not working in reference qualifier
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-02-2023 12:45 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-02-2023 12:51 AM
Hi,
When calling a script include as a reference qualifier you need to call it in the following manner:
javascript: new ScriptIncludeName().functionName(parameters_to_function);
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-02-2023 01:02 AM
I am using javascript: new sn_grc.SADAssessment.updateRecentSAD(current.sys_id); in reference qualifier and in script include -

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-02-2023 01:12 AM
Inspecting your screen shot of the Dictionary entry, I saw that you are missing some pieces.
- new keyword is not there
- () missing after the Script include name
- function name appears to be missing also.
Your example should read like this:
javascript: new sn_grc.SADAssessment().updateRecentSAD(some_id_variable_here);
But, as Sagar Pagar already mentioned, an advanced reference qualifier is used to filter out which records should be available in a reference selection. You should not make changes to the records in your script.
In that case you should create a UI action or something else, depending on your requirement.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-02-2023 01:22 AM
I wanted to show a record by filtering it, Is it possible?