I want to define the mail script body.

Jyoti36
Mega Expert

1. I just simply want to use the variables in the mail script body and then us that mail script.

2. I want to use that mail script in my Business rule to copy the body into the Worknotes field.

Please guide if anyone has done something similar.

Thanks!

7 REPLIES 7

Mihir Mohanta
Kilo Sage

1. Use below syntax to get the variable name in email script



template.print("<B>Variable Name:</B>"+ current.variables.VariableName+ "<br>"); // Write variable name in place of bold text.




2.I dont think it is possible to call email script directly through business rule.




Thanks,


Mihir


Thanks Mihir!


That worked well, but I am just wondering for calling the mail script from Business Rule, I think we can do it using glide but I am little unsure how to do it.


Any thoughts?



Thanks!


Hi Jyo,



I would recommend to convert your mail script to script include, and call that script include both from mail script as well as business rule.