How/if possible to use script include for entire query after sysparm_query=___ for use in a Module.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-26-2024 08:59 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-26-2024 09:10 AM
nvm, I guess IN does work for many:many it doesn't answer my first question but I feel I can get around.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-26-2024 09:11 AM
From what I understand, you want to add function to a field reference qualifier or maybe value
It can go something like below
javascript:'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