Approval to be sent to manager of specific group from workflow
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-06-2020 10:02 PM
Hi all,
My requirement is to send approval to the manger of group 'Service now support team' from workflow.
I tried creating approval user activity and gave there assignment_group.manager and selected assignment group but it is sending approval to whole group instead if sending it to manager.
please suggest.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-07-2020 10:23 PM
Hi
I just prepared a screenshot for you, on how you can do that very simple.
I assume, your workflow is attached to the Incident table.
1) Create a new "Approval - User" Workflow Activity
2) Give it a meaningful name
3) In the User field...
4) ... click o n the "Select Field" Button on the right side of the List (see screenshot number (4)
5) Expand the Field List of the "Assignment Group" field
6) Select the "Manager" field, which will be added to the List as "${assignment_group.manager}
That's all! Very simple!. Give it a shot.
Let me know if that answers your question and mark my answer as correct and helpful.
Have fun & BR
Dirk

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-14-2020 10:45 PM
Hi
Do you have an update on this?
If my answer solved your issue, feel free to mark it as correct and helpful.
Have fun & BR
Dirk
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-06-2020 10:49 PM
Hi,
You need to remove the group 'Data Governance Hub'.
And it will be fine.
Raj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-06-2020 11:20 PM
but where to define the group name because approval should trigger to manager Data governance hub group only

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-06-2020 10:20 PM
Hello,
you have to write the code in the group activity.
var answer = [];
var list = current.variables.list_collector.toString();
var listArr = list.split(',');
for (var i=0;i<listArr.length;++i) {
var group = new GlideRecord('sys_user_group');
group.addQuery('sys_id',listArr[i]);
group.query();
if(group.next()){
var mgrID = group.manager;
answer.push(mgrID.toString()); //push manager
answer.push(group.sys_id.toString());
}
}