I have one catalog item, need to show for only 10 countries and 1 site code that site code is not av

Archana23
Tera Contributor

I have one catalog item, need to show for only 10 countries and 1 site code that site code is not available from the list of 10 countries.

Please suggest in script in user criteria.

2 REPLIES 2

Pradeep Thipani
Mega Sage

Hi @Archana23 ,

 

You can make the catalog item available from below by clicking into new option under available for related list:

PradeepThipani_0-1728323262444.png

Make sure those countries are available in  cmn_location table, so that you can create a user criteria:

PradeepThipani_1-1728323345291.png

 

Thanks,

Pradeep

"If this response was useful, please select 'Accept as Solution' and mark it as 'Helpful.' This helps me provide better answers and assists the community ".

Regards,
Pradeep

Hi @Pradeep Thipani , I have tried the above method, somehow it is not working as expected, So I have created one system property and storing all the countries in that, and used the below script.
It is also not working, Please suggest.
 
var userid1 = user_id;
var uc = new GlideRecord('sys_user');
uc.addEncodedQuery('sys_id=' + userid1);
uc.query();
if (uc.next()) {
var u_country = gs.getProperty('SE_Hardware_countries');

}
if(u_country == true){
    answer = false;
} else {
    answer = true;
}