How to auto populate group name on the basis of 2 fields value
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-30-2024 06:34 AM
How to auto populate group name on the basis of 2 fields value - Role and Site using Script include.
I want group name to be auto populated on the change of role value and site value. Group field is referring to a group table here.
I wrote a script include but not able to figure out how to proceed on this :
script include :
var smdrsRoleMatrix = Class.create();
smdrsRoleMatrix.prototype = Object.extendsObject(global.AbstractAjaxProcessor, {
getRoleSite: function() {
var getRole = this.getParameter('sysparm_role');
var getSite = this.getParameter('sysparm_site');
var roleMatrix = new GlideRecord("x_amspi_smdrs_app_role_matrix");
roleMatrix.addQuery('site', getSite);
roleMatrix.addQuery('role', getRole);
roleMatrix.query();
while (roleMatrix.next()) {
var usrGroup = new GlideRecord('sys_user_group');
usrGroup.addQuery()
}
},
type: 'smdrsRoleMatrix'
});
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-30-2024 06:43 AM
@Pratiksha Lang1 can you please paste your client script as well here?