I have an email which needs to be stopped from being sent on a particular date moving forward (20170816) in a journey. For this purpose I have tried using the Exclusion Script. However the script stops the email send but it should allow the email to be sent before that date. And unfortunately I don't receive the email even though I will reverse the logic.

Here is the script:

IF FormatDate(SystemDateToLocalDate(Now()), "YYYYMMDD") >= '20170816' THEN

    Not Empty(Lookup('Sendable_DE','EMAIL','EMAIL',emailaddr))


The Exclusion Script needs to evaluate to true, so you can simply put the following string in the Exclusion Script text area field:

FormatDate(SystemDateToLocalDate(Now()), "YYYYMMDD") >= '20170816'

I've tested this and if works. If specified date matches the current date or any date after this specified date (which I understand is what you are trying to achieve), then the email will not be sent.

  • ok that is strange. Anyways does it work if i reverse the logic which is if the AMPScript (Exclusion Script) is not true? – Brad Sapkota Jul 31 '17 at 1:05
  • If the script evaluates to false, then the email will be sent. – Eliot Harper Jul 31 '17 at 1:16
  • Just have another question is there a way we can stop sending journey builder emails on weekends? – pragyanshu kukreti Dec 7 '18 at 7:50
  • @pragyanshukukreti do you want to skip sending or delay sending emails on weekends (e.g. don't send until Monday)? – Eliot Harper Dec 10 '18 at 0:21
  • I think I want to delay sending emails on weekends. Eg if any contact is being pushed on saturday, email should reach out to their inbox on Monday. – pragyanshu kukreti Dec 10 '18 at 3:06

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.