Script Include

sparkles
Tera Contributor

Hi, 

 

I created request to allow a logged in user to be added to a group based on their department function. for example:

 

1- user from department A can see 2 options only where user from department B can see 3 or more

2- request goes to the approver of the group and can approve or reject, here is part of the script include I have:

 _user_from_A: function(userA) {

        var result = 'false';
        var grouplist = 'sys_id of the group';
        if (grouplist.split(',').indexOf(userA) != -1)
            result = 'true';
        return result;
 

If the logged in user is one of the approver and wanted to submit a request for someone else that not from the approver department, I want to give them the ability to see the list of the group they can approve plus what the "requested for" is eligible for

Please help

 

Thanks,

 

1 REPLY 1

Ankur Bawiskar
Tera Patron
Tera Patron

@sparkles 

It would be nice if you could share complete script along with screenshots.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader