- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-16-2020 07:40 PM
Hi,
I have created receipients list in the Publications.But the users in the receipients list are not receiving email notifications when the publication is published.There are some out of the box notifications which are configured but sn_publications.createEmail is not getting triggered and Targeted Communication Send Email notification is not sent.
Can any one help me resolve this issue.
Thanks
Malini
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-21-2020 01:50 AM
Hi
I just searched a lot in the scripts and BR of the Targeted Communication and found out the following for the Event you are referring to (Event = "sn_publications.addBCC").
This Event is fired in one Script Include called "RecipientsListApi" in the function "_getNewRecepients()" (which is called internally, when the public Function "refreshRecipients()")
The public function "refreshRecipients()" in turn, is called from (e.g.) the Scheduled Job called "Targeted Communications Recipients Refresh" (running daily at midnight).
However: This function fires the Event just in case, you added NEW Recipients to the Recipient List AND the "EMail Account" configuration record for your "SMTP" Account is having either a "FROM" value, OR a "User Name" value. If that is EMPTY, the "addBCC" Event will not be fired.
For Reference, see screenshots below:
a) The SMTP EMail Account config
b) here comes the code snippet reading the SMTP Account (Script Include "RecipientsListApi"):
c) Here is the CODE Snippet to fire the event (Script Include "RecipientsListApi")
So, finally, can you check your SMTP Account Config?
For me, the Event was fired, when I manually executed the Scheduled Job (see screenshot below):
Reviewing the EMail Log, I was able to see the new Notification created...
In the "Bcc" List (in the Header of the EMail), I was able to find exactly the two NEW added Users to the Recipient List.
As a result. "Refreshing" a Recipient List (not inside of a Publication, but JUST the configuration of the List itself), will fire the "missing" emails to the new recipients - for all affected Publications in one shot. That is quite cool!
BTW: How many answers do you expect me to send to you until you at least click once on "helpful" (which gives me extra points in the community and keep me motivated here)?
Thanks for answering
BR
Dirk

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-20-2020 07:58 AM
Hi
Can you share the full screen of the Publication? I would like to know, if the Related List of Recipients is empty there.
Thanks & BR
Dirk

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-20-2020 08:01 AM
Hi
You can help me by making screenshots of the whole form. Then I may see some relevant information, like the nbame of the Recipient List, and if you used THAT in your Publication, and if there are any recipients found for your filter at all, etc.
But for your filter above, YES you can use the "Contact" table and the SysID of that.
THis configuration is correct.
BR
Dirk

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-20-2020 08:10 AM
Hi
One more:
The email screenshot you showed, is not the one corresponding to your Publication.
The Screenshot of the EMail refers to "PUB0001031" and the screenshot of your Publication shows "PUB0001025".
Do you have any email like me for "PUB0001025"?
Let me know. I am getting keen in finding out the root cause...
BR
Dirk
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-20-2020 09:39 AM
Hi Dirk,
Here is the step by step process I am following.I opened create a new publication.Entered all the fields and clicked on submit button.Then I clicked on refresh recipient list.Recipients got populated in the related list.Clicked on review and waited till it got published.
Now I checked the notification in the email logs.
can you also please check if sn_publications.createEmail event is getting triggered for you in your event logs.Its is not triggering for me.
Thanks
Malini

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-20-2020 10:13 AM
Hi
I cannot find any Event Log Entry with that Event.
Maybe I just overlooked your hint about the Event "sn_publications.createEmail".
Where do you find some information about this Event Name?
Where do you think it should be fired and when?
BTW: Do you have the following setting in your
>System Properties > Email Properties
For my previous tests, the Flag (1) was already set, and the field (2) was empty.
Now, I just filled in my email address in that field, and the resulting EMail does not have any BCC anymore. Maybe you are having a similar setting in your PDI (which you are working in)...
Let me know.
BR
Dirk