If two email notifications are configured for same event firing then which notifcation would work?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-10-2015 02:54 AM
I have two notifications that are to be triggered for the event "approval.inserted" which one would it result in sending?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-10-2015 04:31 AM
Hi Naga,
Please check the condition in both notification and see if both are getting satisfied at the same time. Also, for debugging purpose check the event logs(Logs>Events) as how many events are triggered.
Thanks,
Ashish Rai
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-10-2015 10:16 AM
Hi,
No both the conditions are not in conflict or same.
notif1- condition SOURCE TABLE is change_request
notif2 - condition SOURCE TABLE is NOT change_request
the above notification are on sysapproval_approver table. and event name - approval.inserted.
Both the notification contains diff Body/Subject?
The issue is I cannot see the event in the logs nor any email in the logs when I raise a CR and approval request is pending with approver.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-10-2015 04:44 AM
Hi,
Can anyone help me in configuring Table format notification(HTML Body) in workflow notification.?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-10-2015 04:52 AM
Hi Naga,
If you only want HTML part then you can go with HTML <table><tr><td></td></tr></table>
For example:
<table>
<tr><td> <!-- Space Here. --> </td></tr>
<tr><td>Hi All,</td></tr>
<tr><td> <!-- Space Here. --> </td></tr>
<tr><td>Incident ${number} has been assigned to ${assignment_group}.</td></tr>
<tr><td> <!-- Space Here. --> </td></tr>
<tr><td>An Incident has been assigned to ${assignment_group} for action. If you are a member of the support group, please update the Incident listed below with the name of the individual who will be actively working on this Incident until resolution. Click on the Incident number below to update the Incident.</td></tr>
<tr><td> <!-- Space Here. --> </td></tr>
<tr><td><b>Incident Number:</b> ${number}</td></tr>
<mail_script>
if(!current.u_on_behalf_of.nil())
{
template.print("<tr><td><b>Caller: </b>${caller_id}</td></tr>");
template.print("<br><tr><td><b>On Behalf Of: </b> ${u_on_behalf_of}</td></tr>");
} else{
template.print("<tr><td><b>Caller: </b>${caller_id}</td></tr>");
}
</mail_script>
<tr><td><b>State:</b> ${incident_state}</td></tr>
<tr><td><b>Priority:</b> ${priority}</td></tr>
<tr><td><b>Opened:</b> ${opened_at}</td></tr>
<tr><td><b>Configuration item:</b> ${cmdb_ci}</td></tr>
<tr><td><b>Short description:</b> ${short_description}</td></tr>
<tr><td><b>Description:</b> ${description}</td></tr>
<tr><td><b>Assignment group:</b> ${assignment_group}</td></tr>
<tr><td><b>Assigned to:</b> ${assigned_to}</td></tr>
<tr><td> <!-- Space Here. --> </td></tr>
</table>
I have also included mailscripts in case you have any logic in place. You need to use template.print inside mail scripts.
I hope this helps.
Thanks,
Ashish Rai
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-10-2015 04:59 AM
One more thing -
If you are on Eureka then message field will allow only HTML fields. If you want to include any mail script either transfer your code to notification scripts and refer that script ${mail_script:script name}.
Thanks,
Ashish rai