Missing Catalog items

Jar
Tera Expert

Hi all,

Over the weekend some of our catalog items have disappeared from our portal and can't quite figure out why.

Our team have checked user restrictions, ACLs, catalog item configurations  etc but don't see anything out of the ordinary. The issue is only observed with non admin users as admins can see these items

Would anyone know what else could be looked at to see why only admins can see these items.

 

1 ACCEPTED SOLUTION

Hi Shubham,

The code was rewritten as follows and is working now.

 

var userID = gs.getUserID();

var internal = new GlideRecord("sys_user");

internal.get("sys_id", userID);

if(internal.getValue("active") == true) {

    answer = true;

 

 

Thanks for your help

View solution in original post

4 REPLIES 4

Moy1
Kilo Guru

Some possibilities:

1. The category field on these catalog items has been cleared out

2. A new user criteria is applied to these catalog items

3. The items were moved to another catalog

4. The widget that displays these catalog items has been modified.

Jar
Tera Expert

Hi Moy, Thanks for your reply. Turns out a Madrid patch was applied over the weekend. The patch doesn't support the below particular scripting method of retrieving active users which we had set up on the catalog items.

 

gs.getUser().getRecord().getValue('active')==true;

Hi ,

 

Please remove getRecord() from the below query :

gs.getUser().getRecord().getValue('active')==true; . Now check it is working fine or not.

 

Regards,

Shubham

Hi Shubham,

The code was rewritten as follows and is working now.

 

var userID = gs.getUserID();

var internal = new GlideRecord("sys_user");

internal.get("sys_id", userID);

if(internal.getValue("active") == true) {

    answer = true;

 

 

Thanks for your help