Before Unpublished the page sends notification email.

Rajendrasinh Jadeja asked on December 20, 2017 04:12

Hi, I want to send an email notification to created by the user before page publish to date and without browsing the site. I tried using the scheduler to send notification email but it runs when site browsing but before that page was unpublish. So is it possible to send email notification before publish to date?

Recent Answers


Zachary Perry answered on December 20, 2017 23:39

Probably could do a custom event off of the publish event:

    public override void Init()
    {
        WorkflowEvents.Publish.Before += PublishDocument;
    }

    private void PublishDocument(object sender, WorkflowEventArgs e)
    {
        var doc = e.Document;
        switch (doc.ClassName.ToLower())
        {
            case "custom.document":
                    SendNotificationEmail();
                    break;
         }
   }
1 votesVote for this answer Mark as a Correct answer

Juraj Ondrus answered on December 21, 2017 10:21

Hi,
In addtion to what Zachary posted, if you have the EMS edition, you can use Advanced workflow and add an email step before the Archived step in the advanced workflow designer.

0 votesVote for this answer Mark as a Correct answer

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