Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-17-2024 09:36 PM
Hi Everyone,
We have a catalog item that requires 3 approvals.
The 1st (user manager) and 2nd (AOA POC) approvals are working, but the 3rd one (AOA Head) is being skipped.
Skipped error
Group approval setting
// Set the variable 'answer' to a comma-separated list of group ids or an array of group ids to add as approvers.
answer = [];
var country = current.location.country.toString();
var groupName;
if (country == 'Singapore') {
groupName = gs.getProperty('glide.aoa.atsh_techmgr');
}
else if (country == 'China') {
groupName = gs.getProperty('glide.aoa.atc_techmgr');
}
else if (country == 'Korea, Republic of') {
groupName = gs.getProperty('glide.aoa.atk_techmgr');
}
else if (country == 'Malaysia') {
groupName = gs.getProperty('glide.aoa.atm_techmgr');
}
else if (country == 'Taiwan') {
groupName = gs.getProperty('glide.aoa.att_techmgr');
}
else if (country == 'United States') {
groupName = gs.getProperty('glide.aoa.ati_techmgr');
}
else if (country == 'Japan') {
groupName = gs.getProperty('glide.aoa.atj_techmgr');
}
else if (country == 'Portugal') {
groupName = gs.getProperty('glide.aoa.atep_techmgr');
}
else if (country == 'Vietnam') {
groupName = gs.getProperty('glide.aoa.atv_techmgr');
}
else {
groupName = gs.getProperty('glide.aoa.amk_techmgr');
}
if (groupName != '') {
var gr = new GlideRecord('sys_user_group');
if (gr.get('name', groupName)) {
answer.push(gr.sys_id);
}
}
Solved! Go to Solution.
1 ACCEPTED SOLUTION
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-18-2024 07:39 PM
I have my solution here.
The sys property of the groups I made are not working.
So I used the 'If' condition core instead.
5 REPLIES 5
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-18-2024 07:39 PM
I have my solution here.
The sys property of the groups I made are not working.
So I used the 'If' condition core instead.