I'm setting up alerts for a series of recurring deliveries that is meant to inform the operators of how many delivery records were generated / deliveries were sent.
If I pull a count of records in the scripts of the delivery node itself, I find that recipient records excluded by the sending typology are included in the count. Is there a way to pull a count of outgoing records (so these excluded records are not included) within the delivery script? Or is it only possible to do so in a separate script node following the delivery?
For the latter, I'd use the following method (https://experienceleaguecommunities.adobe.com/t5/adobe-campaign-classic-questions/how-to-get-the-cou...).
Thanks in advance,
Solved! Go to Solution.
I'm hoping to avoid having any js nodes following the deliveries. I believe that, if absolutely necessary to have a js-node following, I can simply perform a record count as all failed deliveries will have dropped off the records, correct?
instance.vars.OutogoingCount = vars.recCount;
Hello @espiewak The output count might not be accurate. The output count can include the population of the proof + target + bounces.
Also, Suppose you plan to add this code snippet in the Delivery script tab. In that case, you will get the counts from the previous activity, not the counts processed successfully by the delivery activity.
I was hoping to accomplish this without the need for a js node, either by using just the delivery script or the script in an Alert node, as this is meant to generate a report following deliveries.
However, I'm having an issue with the delivery.indicators.success returning a 0 count despite successful deliveries. Screenshots below show my generation of instance variables for both recCount and delivery.indicators.success and the counts then populated into the Alert email. As can be seen in the workflow, despite 1 successful delivery, this is returning a 0 count unlike the recCount.
Alert Email Body:
Can you advise?
Hi @Sukrity_Wadhwa, thanks for following up. Is there any way to accomplish this without having any js nodes following the deliveries? I would love to integrate this in a streamlined way as I have a large number of workflows that will need to be updated here.
Thanks in advance,