Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Adding javascript for variable reference qualifier

MaharshiC
Tera Contributor

Hi,

 

I have created a reference type variable and I have this condition added in the reference qualifier -  javascript:'business_organization=' + current.variables.business_org  . I want to add an additional condition for this that i want to see only those values in the reference which has active = true. Is it possible to add in this reference qualifier itself. The active field is in the reference table.

 

Regards,

Maharshi Chatterjee

1 ACCEPTED SOLUTION

Brad Bowman
Kilo Patron
Kilo Patron

You can add this to the beginning or end of your current string.  The beginning is a little more straightforward:

javascript:'active=true^business_organization=' + current.variables.business_org

View solution in original post

2 REPLIES 2

Brad Bowman
Kilo Patron
Kilo Patron

You can add this to the beginning or end of your current string.  The beginning is a little more straightforward:

javascript:'active=true^business_organization=' + current.variables.business_org

@Brad Bowman  Thanks very much, i created an advanced filter using your logic above. I used this to add as a reference qualifier to fetch the computer records of the user who is placing the request.