Edit Cloned Emailing Campaign Email

Sharon Parry asked on March 11, 2020 19:55

Hi,

This is a version 9 ultimate application running multiple sites.

Client would like to start using Email Marketing to send various notifications to individual site users on a regular basis. The campaigns between sites, including the emails, are identical.

I'm logged in as Global Administrator.

I've setup an initial Campaign with a test email. Email is in Draft.

Cloned the campaign to a second site. Appears to be successful. On the other site I can access the campaign and the test email is listed.

If I try to edit the test email, I get the "403 - Forbidden: Access is denied" error, however I CAN Preview the email.

Have no issue if I create a new email from scratch.

What have I missed?

Recent Answers


Brenden Kehren answered on March 11, 2020 20:35

I believe email campaigns are geenerated based on a template. So the template(s) and any other parent related items would need to be cloned as well.

Do the Kentico Event Logs or IIS event logs give you any further info as to the error?

0 votesVote for this answer Mark as a Correct answer

Sharon Parry answered on March 11, 2020 20:53

Hi Brenden,

I thought your mention of the templates might have been a hint. Although the other site already had the template(s), I had manually created them before I cloned the campaign. So I've just deleted them and then recreated by cloning from the "master" site first, and then cloned the campaign again. (Have already found you can't actually clone a campaign from one site to another unless the relevant templates already exist on the second site).

:( No go!

Nothing in the Kentico Event Log or server Event Viewer.

0 votesVote for this answer Mark as a Correct answer

Brenden Kehren answered on March 11, 2020 20:57

If you hav access to the database, do some comparing of the table with the email campaigns in it. That may lead you to what needs to be updated in the site. That would be my next place to start.

0 votesVote for this answer Mark as a Correct answer

Sharon Parry answered on March 11, 2020 20:59

Hmmm, yes, have already been doing that and I can't spot any differences as yet. Will keep at it and post if I figure out what's going on.

0 votesVote for this answer Mark as a Correct answer

Sharon Parry answered on March 11, 2020 21:33

Issue appears to be that campaign emails cloned as part of cloning a campaign from one site to another retain the IssueTemplateID of the original site rather than updating that field in the Newsletter_NewsletterIssue table to the equivalent IssueTemplateID of the second site.

Have tried various ways to do this:

  • Making sure I check "Clone template-campaign relation objects" at the Clone Email campaign dialog - I initially assumed this would mean that all templates associated with the campaign would be cloned across to the selected site as well, but this just results in a message [BaseInfo.InsertAsClone]: Cannot clone object to other site because one of his dependencies does not have proper site equivalent. So ...
  • Cloning (rather than manually creating) the three basic templates (Subscription, Unsubscription and Email Template) from the master site across to the second site, and THEN cloning the campaign - tried both checking and unchecking "Clone template-campaign relation objects" at the Clone Email campaign dialog, but both still result in the entry created in the Newsletter_NewsletterIssue table retaining the IssueTemplateID from the original record!

If I manually update the IssueTemplateID directly in the table in the database I can edit the email without problems.

0 votesVote for this answer Mark as a Correct answer

Sharon Parry answered on March 12, 2020 07:08

Thanks for the input jokky, but the issue is that whenever the campaign is cloned the only way to assign the correct email templates to campaign emails is to do it directly in the database.

This is for an application that is running 31 websites - 1 master domain and 32 sub-domains - and generally speaking when a new campaign is created on the master site it will need to be mirrored on all of the sub-domains.

I'm going to develop a custom gui for the client to be able to use to do this. That way I can run my own procedure(s) to correct the template id for all the cloned campaign emails.

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.