Aborting Messages

Using Liquid templating, you have the option to abort messages within conditionals. For example:

1
2
3
4
{% connected_content https://example.com/webservice.json :save connected %}
   {% if connected.recommendations.size < 5 or connected.foo.bar == nil %}
     {% abort_message() %}
   {% endif %}

You can also specify an abort reason, which will be saved to the Message Activity Log in your Developer Console:

{% abort_message('Could not get enough recommendations') %}

Braze does not count Aborted Messages towards the send count in your Dashboard or the Raw Event Stream.

WAS THIS PAGE HELPFUL?