Approval to be sent to manager of specific group from workflow

karishma
Mega Expert

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.

17 REPLIES 17

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.

find_real_file.png

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

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

Hi,

 

You need to remove the group 'Data Governance Hub'.

And it will be fine.

 

Raj

but where to define the group name because approval should trigger to manager Data governance hub group only

 

Ankush Jangle1
Kilo Guru

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());
   }   
}   
 Please mark it as Helpful/Correct if it helps you