in work notes section how to show role name instead of agent name in email notification

slimgam
Tera Contributor

so we have a "comments added" notification, so when user receiving a notification , in the notification comments section agent name is showing ,we want to display role name instead of agent name (and need to check user has that role or not), using email scripts 

PFB screenshot.

 

slimgam_0-1715268101038.png

 

#email #scripts #notification

2 REPLIES 2

SumanthDosapati
Mega Sage
Mega Sage

Agent might be having multiple roles assigned to them. Which role do you want to fetch?

 

Hi @SumanthDosapati ,

thanks for response, Sorry for delay, so we have create "PQL admin" role, so whoever having that role , if that person commented we need to display that role instead of agent name. 

below email script i am using to display comments without user name, but we need to display role name.