Created
October 20, 2025 00:27
-
-
Save katydorjee/1e74c2ac7a79646369e9618ab74d413f to your computer and use it in GitHub Desktop.
Get Email bounce data of a Journey builder email sent
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| SELECT su.emailaddress, | |
| su.subscriberkey AS ContactKey, | |
| j.journeyname,j.versionnumber,ja.activityname AS EmailName, | |
| s.eventdate AS SendTime, s.jobid, s.listid, | |
| b.eventdate AS BounceTime, b.BounceType,b.SMTPBounceReason, b.SMTPMessage, b.SMTPCode | |
| FROM [_sent] AS s | |
| INNER JOIN [_journeyactivity] AS ja | |
| ON s.triggerersenddefinitionobjectid = ja.journeyactivityobjectid | |
| INNER JOIN [_journey] AS j | |
| ON ja.versionid = j.versionid | |
| INNER JOIN [_bounce] AS b | |
| ON s.jobid = b.jobid | |
| AND s.listid = b.listid | |
| AND s.batchid = b.batchid | |
| AND s.subscriberid = b.subscriberid | |
| INNER JOIN [_subscribers] AS su | |
| ON s.subscriberid = su.subscriberid | |
| INNER JOIN [<Name_of_the_journey_data_extension] AS de | |
| ON s.subscriberkey = de.SUBSCRIBER_KEY | |
| WHERE j.journeyname = '<Name_of_the_journey>' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment