How we call script Include from email templates?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-08-2024 08:23 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-08-2024 08:28 AM - edited 07-08-2024 09:05 AM
Hi @gaurav_p1
You can invoke an email script within an email template using the syntax `${mail_script:script name}`.
Inside the email script, you can access a Script Include using the code `var scriptInclude = new emailScriptUtil().getNotifDetails();`.
———————————————-
Please consider marking my reply as Helpful👍 and/or Accept Solution☑️✅, if applicable. Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-08-2024 08:59 AM
Hi @gaurav_p1 ,
You can call a email script in email template with the below syntax:
${mail_script:script name}
In Email script, you can call script include as below:
var scriptInclude = new emailScriptUtil().getNotifDetails();
Here, 'emailScriptUtil' is script include name and 'getNotifDetails' is function name of that script include.
Mark this as Helpful / Accept the Solution if this helps
Mark this as Helpful / Accept the Solution if this helps.