email script not getting triggered
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-21-2024 11:24 PM
Hi guys , I am trying to send notification like mentioned in the below picture. where i am getting data from core_company table and incident table.
here is the email script :
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-21-2024 11:36 PM
Hi @tghadage124
It looks like the $ is missing when you're calling the mail script in the Message HTML. Let's update it as follows:
From
{mail_script:it.purchase.requisition};
To
${mail_script:it.purchase.requisition};
Cheers,
Tai Vu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-22-2024 12:00 AM - edited 10-22-2024 12:01 AM
yes have changed the same thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-21-2024 11:58 PM
Hi @tghadage124 ,
Remove the email template from the fields, and in the body, call the script as follows:
${mail_script:your_email_script _name}
You don’t need to include a semicolon at the end while putting mail script in the html body.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
If you found my response **helpful**, I’d appreciate it if you could take a moment to select **"Accept as Solution"** and **"Helpful"** Your support not only benefits me but also enriches the community.
Thank you!
Moin Kazi
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~