Get a user from a specific department for a specific view

User393503
Tera Expert

I am using:

if(gs.getUser().isMemberOf('department')

It will work for retrieving a user in a specific group, but not a department.

6 REPLIES 6

Hello @User393503 
use this

gs.getUser().getRecord().getValue('department')

 if my answer has helped with your question, please mark my answer as accepted solution and give helpful
Regards,
Suyash

Suyash Joshi
Tera Contributor

Hello @User393503 
use this

gs.getUser().getRecord().getValue('department')

 if my answer has helped with your question, please mark my answer as accepted solution and give helpful