- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-23-2023 06:17 AM
Hi, I have a catalog item and in one of the variables i am trying to filter the records that are shown to only show those that either have the same company as the u_company variable in the catalog item or that have the company with the following sys_id : 232e52426f2e1240ca2ed6b2be3ee498
i wrote an advanced reference qualifier and i can't seem to find a way to put both conditions at once, do you know how i could do that ?
my advanced reference qualifier currently looks like this but i have tried other things :
javascript: "u_company=" + current.variables.u_company || "u_company=232e52426f2e1240ca2ed6b2be3ee498";
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-23-2023 06:31 AM
try this
javascript: "u_company=" + current.variables.u_company + "^ORu_company=232e52426f2e1240ca2ed6b2be3ee498";
If my response helped please mark it correct and close the thread 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
10-23-2023 06:31 AM
try this
javascript: "u_company=" + current.variables.u_company + "^ORu_company=232e52426f2e1240ca2ed6b2be3ee498";
If my response helped please mark it correct and close the thread 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
10-23-2023 06:42 AM - edited 10-23-2023 06:46 AM
i tried it and it didn't work is there a mistake somewhere ?
edit: i changed it to this and it worked
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-23-2023 06:44 AM
is u_company a correct variable name?
also is u_company a correct field on that Software model table which holds company?
If yes then my script will work
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-23-2023 06:50 AM
it actually worked i just wrote javascript: instead of javascript followed by a colon