Capture output of notification block in pipeline for logging purposes

Hi everyone,

I'm attempting to create an SMS logging function for the notification pipeline for all SMSs sent out. I want to log this information into a database.

Is there a return object generated by the notification block that contains all the information used when creating the SMS to be sent out? (Direct Roster Type)

I could like to attach a scripting block to the output of the notification block and capture this information for logging purposes.

If this is not possible I can obviously convert the notification block's roster type to calculated and do this in scripting.

The goal is to use this scripting block as a logging function in other pipelines, meaning it should be easy to copy, maintain, and extend.

Thank you in advance.

No, the notification block doesn't return anything. Notifications are async, at that point; there's no guarantee the notification even succeeded before the pipeline continues (since blocking the pipeline on something like an SMTP server configured with no timeout would be bad).