The CreatorCon Call for Content is officially open! Get started here.

Need assistance to figure out why notification recipients is null

gnoblin
Tera Contributor

Hello,

This community has been very helpful for me to get my notification set up to work.  Unfortunately, i have 1 roadblock that has me stumped.

Here is my setup (Jakarta):

I have a UI action with the following script:

find_real_file.png

I have a notification set up to send when Event is Fired, and Who will received set up as:

find_real_file.png

When the UI Action is triggered, the event is definitely fired and I see that Param 1 has a valid email address.  I find that the notification is definitely created.  But checking the email logs, the recipients value is always null:

find_real_file.png

 

This is driving me nuts.  I've searched through various threads regarding notifications but nothing pointing me in the right direction to resolve why Recipients is null (even when the Notification config has a defined fielded user specified).  I've added lines to add "cc" recipients to the notification and that works, but this is not a viable option.  I need to be able to pass the recipient list into the notification as the list will change depending on what users are added in the specified fields.

 

Any assistance on this would be appreciated.

 

 

3 REPLIES 3

Allen Andreas
Administrator
Administrator

I'll have to double-check something, but I would imagine it's caused by this line:

find_real_file.png

Perhaps not, also curious about the use of recipients for your variable name...wondering if you should try to change that.


Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!

Jaspal Singh
Mega Patron
Mega Patron

Hi, 

 

Can you confirm once the field Executive Sponsor is of type String, Reference, List? Also, you can try adding log below the

var recipient=... as gs.log('Recipient is ',recipient'); & check logs once.

 

Thanks,

Jaspal Singh

 

Hit Helpful or Correct on the impact of response.

gnoblin
Tera Contributor

sorry for the delayed response....I've resolved the issue.  My scripts and configs were fine.  The issue was an internal one were we have rules preventing emails going out from test instances unless you're a member of a group.  Once I was added to the group I was able to validate my functionality.  

 

I appreciate the help though.