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.

Reference qualifier for city based on location table

Ash41
Kilo Sage

Hi Team, 

 

I need help with reference qualifier on city variable, I have added below script, it shows based on country. but I need to add one more condition as well for cmn_location_type=city. So it can show on city type records. Please assist

javascript:'countryLIKE'+current.variables.country.getDisplayValue();

@Ankur Bawiskar 

 

1 ACCEPTED SOLUTION

Ankur Bawiskar
Tera Patron
Tera Patron

@Ash41 

something like this

javascript:'countryLIKE'+current.variables.country.getDisplayValue() + '^cmn_location_type=city';

If my response helped please mark it correct and close the thread so that it benefits future readers.

 

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

View solution in original post

4 REPLIES 4

Ankur Bawiskar
Tera Patron
Tera Patron

@Ash41 

something like this

javascript:'countryLIKE'+current.variables.country.getDisplayValue() + '^cmn_location_type=city';

If my response helped please mark it correct and close the thread so that it benefits future readers.

 

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Thank you, it worked

Vishal Birajdar
Giga Sage

Hi @Ash41 

 

You can amend your code like below :

 

javascript:'countryLIKE'+current.variables.country.getDisplayValue() + '^cmn_location_type=city';

 

Vishal Birajdar
ServiceNow Developer

I know one thing, and that is that I know nothing.
- Socrates

Anurag Tripathi
Mega Patron
Mega Patron

If city is a variable then Something like this should work

 

javascript:'countryLIKE'+current.variables.country.getDisplayValue()+'^cmn_location_typeLIKE'+current.variables.city.getDisplayValue();

 

-Anurag