Custom Table feidl related option are not visible to the non -itil Role user

Manohararuna
Tera Contributor

Hello Everyone,

 

in catalog item having one variable Real and Dupe .Real options are depend on the Dupe option

for the Real variable options I have created one custom table and in that table create one field Real and check the option show options with now and create few options AAA, BBB, CCC, DDD, EEE, FFF .in ACL level also i gave the role snc_internal ,except that there is no another role.But non itil role users are not able to see the option on catalog item level in Real varaible.it is coming like below

Manohararuna_0-1764146754636.pngManohararuna_1-1764146770980.png

 

 

7 REPLIES 7

Hemanth M1
Giga Sage
Giga Sage

Hi @Manohararuna ,

 

1)i assume you don't have any reference qualifier on the Real or Dupe Variable - Please double check

2)Please use access analyzer to see whats blocking for the end users(snc_internal users)

HemanthM1_0-1764156167456.png

HemanthM1_1-1764156229403.png

 

 

 

Hope this helps!

 

Accept and hit Helpful if it helps.

Thank you,
Hemanth
Certified Technical Architect (CTA), ServiceNow MVP 2024, 2025

Hi Hemanth,

 

Thanks for the response. Real variable having the reference qualifier .

thei sis the reference qualifier: javascript:new Getutilities().displayRealCheck(current.variables.dupe)

Hi @Manohararuna ,

 

its looking for value from the dupe variable, can you check what this is script include is doing  Getutilities().displayRealCheck() or you can paste the logic here if its ok

 

 

Accept and hit Helpful if it helps.

Thank you,
Hemanth
Certified Technical Architect (CTA), ServiceNow MVP 2024, 2025

Hi Hemanth,

this is the script include logic

 

var Getutilities = Class.create();
Getutilities.prototype = {
    initialize: function() {},
    displayRolesCheck: function(dupe) {
        gs.info('Hi Getutilities1');
        var value = '';
        if (dupe == 'Dupe choice1') {
            gs.info('Hi Getutilities2');
            value = 'e23bcf1b87917e50222f4226cebb353f,2bb0ddc287dd7250222f4226cebb3590,61b0118287dd7250222f4226cebb3575,6aa01dc287dd7250222f4226cebb35f8,de70d5c287dd7250222f4226cebb3582,324091c287dd7250222f4226cebb35a6,6f3011c287dd7250222f4226cebb356b,437e4dce879d7250222f4226cebb3583,575e05ce879d7250222f4226cebb3511';

        } else if (dupe == 'dupe choice2 value') {
            gs.info('Hi Getutilities3');
            value = '14a01dc287dd7250222f4226cebb354a,9e90d1c287dd7250222f4226cebb3549';
        }
        gs.info('Hi Getutilities4' + value);
        return 'sys_idIN' + value;
    },
    getquestionsysId: function(sysids, dupe) {
        var ids = '';
        if (dupe == 'dupe choice1') {
            if ((sysids.indexOf('e23bcf1b87917e50222f4226cebb353f') != -1) || (sysids.indexOf('2bb0ddc287dd7250222f4226cebb3590') != -1) || (sysids.indexOf('61b0118287dd7250222f4226cebb3575') != -1) || (sysids.indexOf('6aa01dc287dd7250222f4226cebb35f8') != -1) || (sysids.indexOf('de70d5c287dd7250222f4226cebb3582') != -1) || (sysids.indexOf('324091c287dd7250222f4226cebb35a6') != -1) || (sysids.indexOf('6f3011c287dd7250222f4226cebb356b') != -1) || (sysids.indexOf('437e4dce879d7250222f4226cebb3583') != -1) || (sysids.indexOf('575e05ce879d7250222f4226cebb3511') != -1)) {
                ids = '100,200'; //other variable choices depends on Real variable choices
            }
        } else if (dupe == 'dupe choice2') {
            if ((sysids.indexOf('14a01dc287dd7250222f4226cebb354a') != -1) || (sysids.indexOf('9e90d1c287dd7250222f4226cebb3549') != -1)) {
                ids = '350,400';//other variable choices depends on Real variable choices
            }
        }
        return 'sys_idIN' + ids;
    },


    type: 'Getutilities'
};