We've updated the ServiceNow Community Code of Conduct, adding guidelines around AI usage, professionalism, and content violations. Read more

Adding 1000s options to select box variable dynamically gives performance issue

RinkeshC
Tera Contributor
if(selectedApp.permissions){
    selectedApp.permissions.forEach(function(permission) {  
        var permissionName = permission.name + ' (' + permission.type + ')';
        g_form.addOption('permissions_field',permissionName , permissionName);
    });
   }

I am using above code to add options dynamically to permission_field .

where selectedApp.permissions can be upto 15k and Data is not available in the table, fetching data with API call.

0 REPLIES 0