Hi All, Can we call a email template on custom but...
# suitescript
s
Hi All, Can we call a email template on custom button click?
b
depends on what you want to happen
if you want everything to happen clientside, then probably no
N/render is a serverside module
if you are willing to send a request to a suitelet to do your rendering (and maybe emailing) then yes
s
Thanku bhattk, i want to preview the email message content (as we do under communciation subtab - Email button - set the template and other details - preview) on custom button click. Can we show the email message content on button click?
b
you can make the suitelet return the rendered email content
but its it will involve a fair bit of ui work to display nicely
i would seriously consider just using the native email related functionality
s
Thank you