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

DirkRedeker
Mega Sage

Hi

Are you using the OOB Workflow for Publications under 

> Targeted Communications > Publication Workflow

 find_real_file.png

Maybe your workflow has some approval included, which needs to be done before the Notifications will be sent out?

Let me know, please.

BR

Dirk

 

Thanks for your response.But I am using Instant Publish workflow and my publication is already in published state.

find_real_file.png

 

There are email id in recepients list as well

find_real_file.png

.Can you please let me know how is the event  sn_publications.createEmail getting triggered.

Thanks

Hi

Did you check the Workflow Context, which was created for your Publication?

I tried out and found my workflow waiting like shown in the screenshot below:

find_real_file.png

Can you please cross check, in which state and in which activity your workflow for the given Publication is currently.

It would help, if you also could post a screenshot from your Workflow context to analyze.

Also, can you tell me how many recipients your Recipient list have?
Do you have ONE or MORE Recipient Lists added to your publication?

We will sort out. Just let me know.

Thanks a lot & BR

Dirk

 

malinig
Giga Contributor

Hi Dirk thanks for respondi,

Below are the screen shots.Please take a look at it.

 

find_real_file.png

 

IIn recepient list,I have added contacts and I used below condition

find_real_file.png

I have two recepients

My workflow is published as well

find_real_file.png

 

But in email logs, I do not see recepients in the list.I Just see only one notification

 

find_real_file.png

Thanks

Malini