We've updated the ServiceNow Community Code of Conduct, adding guidelines around AI usage, professionalism, and content violations. Read more

Advanced Reference Qualifier not allowing OR condition?

ryanduclos
Kilo Expert

Quick question, on our assignment group reference qualifier I have the below code.

javascript: "company=" +current.company + "^active=true^typeLIKE12345^ORcompany=12345";

It's filtering everything correctly except the added OR condition of having another company hardcoded, thoughts?

1 ACCEPTED SOLUTION

Dominik H
Tera Guru

This topic helped me with my problem of using OR in refQual so let me put correct answer in case anyone else is looking for similar solution:

In above exaple OR failed because it was put in wrong order. This way it should work:
javascript: "company=" +current.company + "^ORcompany=12345^active=true^typeLIKE12345";

View solution in original post

9 REPLIES 9

AbdulAzeez
Mega Guru

Can you replace company=12345 to company="SYS_ID" ?

so "^ORcompany="+"hardcoded_syd_id"  ?

Please go through below URL: Advanced Reference Qualifier

 

AbdulAzeez
Mega Guru

Please go though below Link:

 

Advanced Referencec Qualifier