- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-02-2016 02:10 AM
Hi,
I have a requirement in where if "approver" and requested for are same then the approver should not be able to approve the request (like he should be debarred from approval_admin role for that request) ....Please give some solutions...
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-02-2016 03:30 AM
I think is how I done it, take a look at these two links and try in dev first!
Cannot dot-walk on Condition Builder
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-02-2016 03:30 AM
I think is how I done it, take a look at these two links and try in dev first!
Cannot dot-walk on Condition Builder
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-02-2016 03:41 AM
thanks tom....it is showing now..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-02-2016 03:52 AM
Nice, good luck!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-02-2016 03:39 AM
Sarfraz,
if you are approving items from a workflow, then
I have a slightly different approach. Use the script section (check Advanced) on the Group Approval activity and remove the requested_by person from the group.
You will need to do a lookup of all group members from sys_user_grmember using a GlideRecord query and skip over the the requested_by approver. Something like this (untested):
answer = getUsers();
function getUsers() {
var uList = [];
var gr = new GlideRecord('sys_user_grmember');
gr.addQuery('group', current.getValue('assignment_group'));
gr.addQuery('user', '!=', current.requested_by); // may be current.variables.requested_by in your situation
gr.query();
while (gr.next()) {
uList.push(gr.getValue('user'));
}
return uList;
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-26-2017 01:07 PM