Send email notification from Runscript in workflow?

snuser09
Kilo Expert

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

 find_real_file.png

Thnak You

12 REPLIES 12

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

I modified code, did not send email. 

I think it fired event. Saw this in EventLog

find_real_file.pngfind_real_file.pngDoes this look ok? in Email notification. I gave my email Id here, to send the notification to

Check event parm1 contains recipient in your email notification


Please mark my response as correct and helpful if it helped solved your question.
-Thanks

I didnt get you.

But it is firing someother event insttead of my event

find_real_file.png

You can send the email as event parameter and use that in the notification.