Help with event parameters

Unic0rns
Tera Expert

Hi There,

I'm creating a custom notification and want to add email id of DL as a recipient of the email. I think to add an email id we need to call event parameters from business rule using gs.eventQueue() method. I'm using "approval.inserted" event and also ticked this checkbox.

"Event parm 1 contains recipient"
I have created a BR with this code.   gs.eventQueue('approval.inserted',current,'emailid');
Somehow its not working. Any help would greatly appreciated.
1 ACCEPTED SOLUTION

Shruti
Mega Sage
Mega Sage

Hi,

Make sure send to event creator checkbox is checked

 Try this gs.eventQueue('approval.inserted',current,'emailid', gs.getUserID());

Shruti_0-1717581679572.png

 

View solution in original post

4 REPLIES 4

Siddhesh2
Giga Guru

Hello @Unic0rns ,

Could you provide the complete business rule if possible. I want to understand the what is the value of emailid variable which you are using in param 1.
gs.eventQueue('approval.inserted',current,'emailid');
If emailid is the variable, then it should not be enclosed in single or double quotes.


 

gs.eventQueue('approval.inserted',current,'xxxx@gmail.com'); 

Like this

Shruti
Mega Sage
Mega Sage

Hi,

Make sure send to event creator checkbox is checked

 Try this gs.eventQueue('approval.inserted',current,'emailid', gs.getUserID());

Shruti_0-1717581679572.png

 

Thanks Shruti. It worked.