Client role assignment schedule job
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-12-2024 12:32 AM
Hi All,
var hr1 = new hr_Utils();
h1.removeRolesAssigned(userSysId);
hr2.matchingPortalRoles(profile);
Can you explain what the above code does?
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-12-2024 12:45 AM
Hi @kali ,
var hr1 = new hr_Utils();
hr_Utils() is a script include u will be able to find in script include table.
h1.removeRolesAssigned(userSysId);
hr2.matchingPortalRoles(profile); //hr2 object is wrong as i dont see it defined anywhere with the code u pasted. It should be hr1 or u might have not pasted the variable definition for hr2
Ignoring the hr obejct after . those are the function which u will be able to find in that script include. you can just try searching with the function name (for eg. removeRolesAssigned) in that script include.
By the function i think it is self explanatory where it is removing assigned roles from a user.
Thanks,
Danish