Click HERE to see how Saviynt Intelligence is transforming the industry. |
01/16/2023 05:57 AM
Hi All,
Can anyone please help in binding systemusername in email template?
Thanks,
Harish
Solved! Go to Solution.
01/16/2023 06:05 AM
Which email template?
use below script and share output
${this.binding.variables.each {k,v -> println "$k = $v" + "<" + "br" + ">"}}
01/16/2023 06:07 AM
Email Template for sending end user information to end user there we are storing sAMAccountname in Systemusername filed so wanted to print same in email template.
Thanks,
Harish
01/16/2023 06:09 AM
Yes but where email template is attached ? Global configuration/ workflow etc
${user.systemUserName} should work on high level
01/16/2023 06:10 AM
At end point level we are configuring the email template.
01/16/2023 06:11 AM
For which condition? Add / remove access new acc ?
run above script and share output
01/16/2023 06:15 AM
It is for New Account task.
Should I user below Script??
${this.binding.variables.each {k,v -> println "$k = $v" + "<" + "br" + ">"}}
01/16/2023 06:18 AM
Yes in email body
01/16/2023 06:23 AM
When ${user.systemUserName} this is used in email template getting below error
"Error while sending emailText must not be null java.lang.IllegalArugumentException: Text must not be null "
01/16/2023 06:28 AM
Did you used script?
01/16/2023 09:34 AM
Hi @rushikeshvartak,
Finally with this syntax ${user.systemUserName} it is working fine. Thank you.
Thanks,
Harish