Targeted Communications

malinig
Giga Contributor

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

 

1 ACCEPTED SOLUTION

DirkRedeker
Mega Sage

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

find_real_file.png

find_real_file.png

b) here comes the code snippet reading the SMTP Account (Script Include "RecipientsListApi"):

find_real_file.png

c) Here is the CODE Snippet to fire the event (Script Include "RecipientsListApi")

find_real_file.png

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):

find_real_file.png 

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

 

 

 

 

 

View solution in original post

22 REPLIES 22

Hi

I did replay what you explained in your scenario, and today (when my Publication reache it's "Publication Date", I received a Notification (shown in the Screenshot below):

find_real_file.png

Look at the "Publication Date" in the Screenshot below:

find_real_file.png

The Workflow is at the same stage and Workflow Activity as yours (and it also RAN the same path, like yours):

find_real_file.png

The Publication itself hold the List of Recipients in the Related List "Recipients" (see below):

find_real_file.png

The Notification just fires as soon as the stage of the Publication changes to "Published" (see screenshot below):

find_real_file.png

I did not find, when and where this Notification was created, but it filters by SYS_ID directly to the Publication that I created.

Looking to the Outbox / Sent EMails, I find the following:

find_real_file.png

BEcause I had 672 recipients, the system needed to create 7 emails (one for each 100).

The details of one of the emails looks like shown in the screenshot below:

find_real_file.png

And below the list of the recipients, which are put all as BCC (to protect their data):

find_real_file.png

There is also a log entry, stating the email creation:

find_real_file.png

Try to review the same like I did in the screenshots above, and let me know what is different in your system.

Thanks & BR

Dirk

 

 

 

HI

By the way, if you want to find the Notification related to your Publication easiest, you can go the follwing steps:

1) Open Your Publication

find_real_file.png

2) Click the "info" button next to the email template field (2) - see screenshot to open the record preview

3) Click on "Open Record" (3) to show the following screen

find_real_file.png

4) Scroll down to the Related List "Notifications". There you can find the Notification referencing the Name of your Publication. Click the name to open the Noftication.

 

Let me know, if that answers your question and mark my answer as correct / helpful, please.

Thanks and BR

Dirk

Hi

Maybe one more hint:

find_real_file.png

As long as I did not click the "Refresh Recipient List" Button (1), the Related List of "Recipients" remained empty. Maybe that is a missing part at your situation.

After clicking that button, all recipients from the "Recipient List(s)" have been added to the Related List.

Can you check, if your Related List hold recipients for your Publication record in "Published" state?

Thanks a lot

BR

Dirk

 

Hi Malini,

I am encountering a similar issue where the emails are not found in the email log table. Can you suggest how did you start seeing the emails in the email log table. Once published, the notification record is added to the publication but there is no email log found

Regards,
Arvind

malinig
Giga Contributor

Hi Dirk,

There is only one contradiction in my instance and yours that is in the header field of the email T

.I do not see any Bcc list as you have. 

 

find_real_file.png

This is what i see in the notification

 

find_real_file.png

Is this the right way to add recepients. By the way I am using Newyork instance.

find_real_file.png

 

 

 

Thanks

Malini