Send email notification from Runscript in workflow?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-24-2019 08:06 AM
I would like to send meail notifcation from the runscript(workflow). I wrote below code but doesnt seem like working. Should something be configured before doing that? how to send variables.
Basically I am doing SOPA call, when SOAP execution fails, I would liek to send an email with form varibales?
Edit:added below screenshot
Thnak You

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-24-2019 02:00 PM
Modify your code like below
var response = sm.execute();
var status = response.getStatusCode();
if(status != '200'){
alert("cannot put ticket in pinnacle");
}
gs.eventQueue('sendEmailToPinnacle',current);
Also, check event log to see if your event is getting triggered
Regards,
Sachin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-25-2019 09:19 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-25-2019 09:29 AM
Check event parm1 contains recipient in your email notification
Please mark my response as correct and helpful if it helped solved your question.
-Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-25-2019 10:50 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-25-2019 10:06 AM
You can send the email as event parameter and use that in the notification.