Telligent Community 7.0: Force daily and/or weekly digest without tampering the cron entries in task.config

Telligent Community 7.0: Force daily and/or weekly digest without tampering the cron entries in task.config

This question is answered

All,

Is it possible toforce daily and/or weekly digest without tampering the cron entries in task.config?

We are changing the digest so we need on demand output in our own staging environment!

Regards,

Steve

Verified Answer
  • Thanks to kevin this worked like a charm! Info provided by Kevin (use with care)

    "

    The script below will update ALL subscriptions to be out of of date and needed to be sent.  Uncomment the where clauses for either daily or weekly to update only those.

    You will still need to update the cron job to run more frequently of course.

    SELECT * from te_EmailDigest_Subscription

    update te_EmailDigest_Subscription

    set NextSendDate = dateadd(day, -1, getdate())

    --WHERE Frequency = 1 /* daily */

    --WHERE Frequency = 7 /* all */

    "

All Replies
  • Its possible but not without touching the database between runs. Even with changing the frequency, the email will only be sent once unless the database is updated.

  • @kevin, do you have the script to do this for version 7.0?

  • Sent.
     
    From: RoketteS [mailto:bounce-RoketteS@communities.telligent.com]
    Sent: Thursday, February 07, 2013 7:21 AM
    To: discussion_evolution@communities.telligent.com
    Subject: RE: [Telligent Evolution Platform Discussion] Telligent Community 7.0: Force daily and/or weekly digest without tampering the cron entries in task.config
     

    @kevin, do you have the script to do this for version 7.0?

  • Thanks to kevin this worked like a charm! Info provided by Kevin (use with care)

    "

    The script below will update ALL subscriptions to be out of of date and needed to be sent.  Uncomment the where clauses for either daily or weekly to update only those.

    You will still need to update the cron job to run more frequently of course.

    SELECT * from te_EmailDigest_Subscription

    update te_EmailDigest_Subscription

    set NextSendDate = dateadd(day, -1, getdate())

    --WHERE Frequency = 1 /* daily */

    --WHERE Frequency = 7 /* all */

    "