I have a requirement that has to do with adding/deleting subscribers from Auto-suppression list based on a Sales Cloud checkbox. Unfortunately I cannot make any development in Sales Cloud, it all has to be done in Marketing Cloud. It also needs to happen in (near) real-time.

The add/delete part can be easily handled with AMPscript, and the AMPscript can be triggered in an automation. Contact ID can be passed using Journey Builder.

But how do I connect the two, so that once the Contact enters the journey, it also somehow triggers the automation to start? Will be grateful for any suggestions - thanks!

  • 1
    i dont know if its possible but you could use a decision split to one customer that is always in journeys and create an email for only this subscriber that triggers the automation with ampscript / ssjs inside the newsletter, but this seems really kind of weird and i believe there are better solutions. Jul 4, 2019 at 6:46
  • 1
    Maybe you don't need the automation if you're sending an email in JB. You could update the suppression list directly from ampscript in the email? Jul 4, 2019 at 6:56
  • I'll try that, but how do I send that email to myself for example, not the person in the journey?
    – zuzannamj
    Jul 4, 2019 at 7:23
  • If you would want to go with that approach, use RaiseError to not send that mail at all.
    – DonL
    Jul 4, 2019 at 12:57

1 Answer 1


You could use a hack in which you execute your entire AMPscript from within an exclusion script in the send email activity. If the AMPscript contained in a content block (needs to be of type "code snippet") that is invoked in the exclusion script returns/prints "true" (and nothing else), no sendout will happen (neither to you nor to the subscriber). To make sure that in no way an email send will happen you can additionally create an email for this specific purpose, that just includes a RaiseError function call.

The exclusion script, that does nothing else than invoking your processing AMPscript stored in a content block, would look like this:


Please note that this is in no way the intended purpose of such exclusion scripts, it is possible however.

The much cleaner solution would be creating a custom activity for journey builder, that for example initiates a file drop to the Marketing Cloud Enhanced FTP and therefore triggers your Automation.

Further resources:

  • Thanks @Markus, custom JB activity would be ideal, but I am not able to develop that myself yet :-)
    – zuzannamj
    Jul 4, 2019 at 13:29
  • Then the quick and dirty hack using the exclusion script should be a fit I guess as only AMPscript skills are needed for that. Jul 4, 2019 at 13:30
  • Markus, one more question, would it be possible to host such custom JB activity inside Cloud Pages, or is this complete nonsense?
    – zuzannamj
    Jul 4, 2019 at 18:54
  • I wouldn't do that as SSJS is very restricted in comparison to NodeJS for example. On the one hand it would be even more hacky than the exclusion script and on the other hand it would be a real pain in the a.. to develop such a custom activity using CloudPages I guess ;) Jul 5, 2019 at 8:03

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.