Welcome to Community Week 2025! Join us to learn, connect, and be recognized as we celebrate the spirit of Community and the power of AI. Get the details  

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
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.