I'm new-ish to AMPScript. In our Marketing Cloud instance we have AMPScript used in various journeys, some of these are sourcing Data Extension content, others are trigger based and pulling directly from Salesforce CRM on send.
Some business critical emails, if the AMPScript data is blank on send (with order number etc), I'd like this send to be cancelled for this subscriber. Ideally an alert would be triggered, or this contact added to a Data Extension log for manual review so we can fix the issue prior to resending.
From what I've read online, I can't find anything to do this when using triggered send journeys pulling data directly from CRM. Can you please help provide the code example for this? Thanks!