1

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))

ENDIF

1 Answer 1

4

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.

6
  • ok that is strange. Anyways does it work if i reverse the logic which is if the AMPScript (Exclusion Script) is not true? Commented Jul 31, 2017 at 1:05
  • If the script evaluates to false, then the email will be sent. Commented Jul 31, 2017 at 1:16
  • Just have another question is there a way we can stop sending journey builder emails on weekends? Commented Dec 7, 2018 at 7:50
  • @pragyanshukukreti do you want to skip sending or delay sending emails on weekends (e.g. don't send until Monday)? Commented Dec 10, 2018 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. Commented Dec 10, 2018 at 3:06

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .