Validate the country against list of groups and return groups which are validated

Ash41
Kilo Sage

Hi Team, 

 

From user profile country, we want to validate with field on "ABC table" which is list collector field type "group" inside it we have country field. Only if match between User profile country and Group.country is done, that groups only should returned. how to to achieve it

4 REPLIES 4

Tai Vu
Kilo Patron
Kilo Patron

Hi @Ash41 

Not sure if I understand correctly. At the List Collector field when you do the lookup, are you trying to show the list of groups that have the country as same as the user's country?

 

Cheers,

Tai Vu

Correct, need to check user country on groups

Hi @Ash41 

So you can set the reference qualifier in the list collector dictionary.

Simple type

TaiVu_0-1700664215620.png

 

Advanced type

Screenshot 2023-11-22 at 21.44.56.png

 

javascript: (!gs.nil(current.u_country)) ? 'u_country=' + current.u_country : 'sys_id=-1';

 

 

TaiVu_1-1700664400845.png

 

 

Cheers,

Tai Vu

 

Actually I need a script to return groups to pass into one of action in flow. So, trying to query with user country and group's country.