Click HERE to see how Saviynt Intelligence is transforming the industry. |
04/12/2022 12:59 PM
How do I escape the backslash in an email template?
And why is this not already handled by the Saviynt groovy code?
Saviynt Logs with error
2020-08-13 18:10:00,169 [quartzScheduler_Worker-2] ERROR mail.EmailHistoryService - Exception
groovy.lang.GroovyRuntimeException: Failed to parse template script (your template may contain an error or be trying to use expressions not currently supported): startup failed:
SimpleTemplateScript485.groovy: 20: unexpected char: '\' @ line 20, column 14.
<br>?????test\<b>Network ID</b>, e.g. test\<b>davenpu0</b>
^
1 error
at com.saviynt.mail.EmailHistoryService$_execute_closure10.doCall(EmailHistoryService.groovy:1496)
at com.saviynt.mail.EmailHistoryService.execute(EmailHistoryService.groovy:826)
at EmailHistoryJob.execute(EmailHistoryJob.groovy:27)
at org.quartz.core.JobRunShell.run(JobRunShell.java:199)
at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:546)
Solved! Go to Solution.
04/12/2022 02:05 PM
I figured it out.
\\ is the answer.
Anand