How/if possible to use script include for entire query after sysparm_query=___ for use in a Module.

4b0d3
Giga Guru

I know you can use javascript: new si().function()  for a value , like fieldIN javascript: new si().function() but what about a generated query, so sysparm_query=javascript: new si().function()  
It doesn't seem to work, it results in going to All.  I have confirmed that using background script to call the script include it does fire.  But with logs within the SI, it doesn't even seem to fire from the module.  No logs.

OR.

is there a many:many condition where any match==true.     So not IN/LIKE  when comparing 2 csv's of sys_ids, where any match would result in those records.

2 REPLIES 2

4b0d3
Giga Guru

nvm, I guess IN does work for many:many   it doesn't answer my first question but I feel I can get around.

Anurag Tripathi
Mega Patron
Mega Patron

From what I understand, you want to add function to a field reference qualifier or maybe value 

It can go something like below

javascript&colon;'sys_idIN' + new ScriptInclude().functionName(<argiment like current, optional>);

 

While posing question please use the below icon to insert code to make it more readable

AnuragTripathi_0-1706289103727.png

 

-Anurag