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

can you elaborate little on that?

I attached the process(3 attachementS) I did in the reply above. IF you cna point what I should be doing in those?

Hi,

When you are calling the event, you can pass 2 parameters, which are optional. Pass your email as param1.

And then in your notificaiton, instead of selecting users, mark this checkbox "Event1 contains recipient" under who to receive section.

gs.eventQueue('sendEmailToPinnacle',current,current.email); //in place of current.email place the field which contains the mail. i just simply put current.email.

Mark the comment as a correct answer and helpful if it helps.

The problem is not with sending email. I see the email in the System Logs, the system is configured not to send emails so the email sits there.

The problem is , it is not sending the Email that I configured in the notification, instead it is sending the default "Request Open on Behalf" Notification is getting fired instead of mine. Is there any configuration that I need to change? for it to fire my notification and not the request open on behalf

check below