I have one catalog item, need to show for only 10 countries and 1 site code that site code is not av
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-07-2024 07:53 AM
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
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-07-2024 10:49 AM
Hi @Archana23 ,
You can make the catalog item available from below by clicking into new option under available for related list:
Make sure those countries are available in cmn_location table, so that you can create a user criteria:
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
Regards,
Pradeep
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-09-2024 05:21 AM
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;
}