What is the use of sent to event creator checkbox in notification?

PP12
Giga Contributor

Hi I am triggering notification through event -

BR (after insert) -

gs.eventQueue('Notify_Assigned_to',current,current.assigned_to,"");

Here whats happening if i am checking event parm1 checkbox only then the mail is not triggering

if i am checking both event parm1 and event parm 2 the mail is also not triggering.

but if i am checking sent to event creator,event parm 1 and parm 2 box then the mail is triggering.

find_real_file.png

Can anyone tell me what should be exactly the right step to follow? and whats happening exactly?

17 REPLIES 17

Chuck Tomasi
Tera Patron

If your main goal is to send mail to the current.assigned_to, just use the Users/Groups in fields to add assigned_to. I wouldn't bother passing it as an argument.

The send to event creator means whomever triggered the event will also get the message. This MAY or may not be what you want. If I'm making a comment, for example, or assigning something me, I don't need an email for that - I know I did it.

hmm thanks got it 🙂 i want to display the first name of the recipient in email template-

Dear "First_name" , -- first name of the assigned to member, i know from fields folder you can choose the variable first name but if its a customized field then how to achieve it?

 

 

Community Alums
Not applicable

If the "Send to event creator" checkbox is enabled, it will send to a user even if that user triggered the event to send the email.  

In this case, because you are triggering the email and are the recipient of the email, you'll need to check the checkbox to send the email.  

ARG645
Tera Guru

PP,

Lets just say Person A with an email address [a@fakemail.com] logged in and executed the below line of code 

gs.eventQueue('Notify_Assigned_to',current,current.assigned_to,"");

Now, Person A is the Event Creator. If Send to Event Creator is not checked, then Person A [a@fakemail.com ] will not recieve the notification regardless of Event Param1 and Event Param2 is checked. 

Thank you,

Aman Gurram

siva_
Giga Guru

Hello , 

I can see that even my guru chuck has replied but i will try my version of explaining this 

 

Notification Recepients  : 

If its straight forward that you need to include any particular field values (user, assigned_to , watch_list) to be included as recepients for the email you can directly use Users/groups in fields 

 

But if its something you are generating the list of recepients through scripts by querying some tables and filtering some recepients and if its not a straight forward action which is not possible to configure via OOB notification then you will try to trigger the event through a server side script with the optional parameters where we generally included the list of recepients in the parameters 

and once we include the list of recepients , we need to make sure that we have to check :Event parm1 contains recepient - if your parm1 is the list of recepients or 

Event Parm2 contains recepient  : if your parm2 contains a recepient or list of recepients you should check this 

Send to Event Creator  : if the user who generated this event by performing the action you set up in the business rule need to be included in the notification recepients  you should check this 

 

There is no connection between these check boxes that should fail to trigger if one is missed and one is not. 

 

 

Thanks,

Siva

 

Mark this answer as correct/helpful if it really helps and solves your issue .