How can I get the current user department group in the email script

shruthij
Tera Contributor

I want to get the current user department group in the email script 
based up the department group it should redirect the user to the portal 
how can I achieve this 

1 REPLY 1

shun6
Giga Sage

Hi @shruthij ,

If the email script is used within notification which links to User[sys_user] table, just use "current.department".

If not, user GlideRecord query to get user's department.

Example scripting for email notifications

Thanks.