Send Approval Request to Users with Role

Luke10
Kilo Expert

Hello Everyone,

I'm new to ServiceNow scripting and need some help. I have a custom role for approval changes. Only users with the 'change_approver' role should be sent the request approval.

When I go to the 'Approval Request' notification and 'Who will receive tab' there is not option for 'roles'. So, I'm missing something.

Does anyone know what I need to do? Any help would be appreciated.

Thanks!find_real_file.png

1 ACCEPTED SOLUTION

Luke10
Kilo Expert

I solved the issue. Turns out the code is correct. The workflow activity is for Approval Group. So, it didn't even look for user roles. The activity should have been Approval User. That fixed it. Thanks for everyone's help and advice.

View solution in original post

15 REPLIES 15

Please check in the email logs what triggered the notifications for all the users.

Also, is role assigned to the group you have selected or to individual users.

 

So, this is what is in the email log. The event is approval.inserted.

find_real_file.png

The 'change_approver' role is assigned to groups. But if you chose a group without the role the approval email is still sent.

Can you check if the Groups members are receiving role from a different group

I checked that before I tested. The user still gets the email even is they aren't in a group with 'change_approver'.

Himanshu Dubey
Giga Guru

Hi 

sending you the link this link may help you

https://community.servicenow.com/community?id=community_question&sys_id=d24b0321db9cdbc01dcaf3231f9619d7&view_source=searchResult

 

Please Mark Correct and Helpful if it helps

Thanks and Regards 

Himanshu Dubey

DxSherpa