- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-26-2025 01:48 AM
Hi All,
Having a requirement that,
On catalog form we have a fields like
> Select the dl - (reference to DL table where we have owner, member)
> Select user to add owner - reference to user table
here in the select user filed want to add a reference qualifer that validate the users data and show only the user who are not as owners of the selected Dl.
Stucked here on proceeding further to how to keep this validation. Any suggestions.
Thanks inadvance.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-26-2025 02:54 AM
Hi @Community Alums
You can acheive this by using "sys_idNOT IN" operator in the ref qualifier.
1. Create one varibale to store the sys ids of the current owners (Hidden variable)
2. Create new variable and in the ref qualifier add the below script.
javascript:"active=true^sys_idNOT IN"+current.variables.approvers_sys_id;
Sample:
1. Catalog variables
2.
3. Output:
Hope this helps.
Regards,
Siva
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-31-2025 02:32 AM
@Community Alums
As per new community feature you can mark multiple responses as correct.
I believe I also answered your question correctly.
If my response helped please mark it correct as well so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-03-2025 11:00 AM
We tried to set the reference qualifier by using the script include and calling that in the reference qualifier like as below
Reference qualifier:
javascript: new fetchSMBmember().getDLNonOwners(current.variables.distribution_list_s);
Script include:
Before the form submission the response is taking more time and after submitting the request on the ritm its showing this error.
Do you have any idea on this how to handle this.