using email address in Event Parm1 not working
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-29-2016 11:52 AM
Hi guys
I'm trying to create a bounce back notification to the user whenever they attempt to create a ticket via email.
On the existing Inbound Email, I triggered an event:
gs.eventQueue("create_ticket",current,email.origemail,"");
Parm1 - email address of the sender/requestor
Parm2 - empty, I just need one email.
The event perfectly works.
Going to notifications, I tried couple options to make it work:
1. Clicking Event Parm1 contains recipient. - did not work (Base on the forms that I read, you need the user sys_id?)
2. Creating email script where:
var requestor = even.parm1;
email.setReplyto(requestor);
var email_body = "This is a bounce back email notification";
template.print(email_body);
Still not working.
Am I missing something on the script? Can this be done using an event?
Thanks,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-29-2016 02:39 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-29-2016 03:08 PM
As Abhinay said, if you can post a screenshot of System Logs > Events showing these events along with Parm1 and Parm2 columns, that would help a lot.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-29-2016 02:42 PM
Problem here is not with the event parameter being sys_id or email id. Either way, it will work. See the event logs and see what the parms show
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-29-2016 03:26 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-29-2016 03:29 PM
Since you are the person who needs to recieve the email. You need to check the send to event creator checkbox in order to send out the email. Open the email notification and check the send to event creator check box and test it again.
