send email without record creation
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-06-2017 08:57 AM
I need to direct a manager to an order guide when a particular email is received from HR. I have been trying to create an inbound action to send a notification without the need to create a record and it will not send without a valid record. I tried to piggy back of of the email (sys_email) received and that failed as well.
How can I get get the manager to complete an order guide when an HR notification is received but not processed?
Thanks
- Labels:
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-06-2017 09:09 AM
could you get the inbound email action to fire an event, then fire the notification from an event instead?
http://wiki.servicenow.com/index.php?title=Events_and_Email_Notification#gsc.tab=0
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-06-2017 09:14 AM
Should be able to like mguy says. Take a look here. just instead of firing it from a scheduled job, you do it from the inbound action: Fire an email notification from a schedule job
//Göran
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-06-2017 11:03 AM
That is what I have tried but I get the following warning message in the log:
getEventTarget() called with invalid record reference: sys_email.5e1782d24fd13e00af9c01b28110c772 for event: inbound_action.notify, could have been deleted
The above was the message when trying to use the sys_email table so that I would not need to create a record from the inbound email.
I am already creating a request in another inbound action without issue but when I tried to create this email without generating the request I got the same message as i did on the sys_email table.
getEventTarget() called with invalid record reference: sc_cart_item.161782d24fd13e00af9c01b28110c773 for event: core.notify, could have been deleted
It seems that I must create a record to send an email.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-06-2017 11:11 AM
I think this is because your referencing a record that doesn't exist or the tables do not match. Try using current as the record parameter in the event and changing the notification table to sys_email as well.