Skip to main content
Mar 20, 2023 8:30 PM UTC
Solved

Is it possible to get a count of outgoing transition records in a delivery script?

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-counts-of-records/m-p/371220). 

Thanks in advance, 
e


This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Manoj_Kumar
Manoj_KumarAccepted solution
Community Advisor
May 30, 2023 4:00 AM UTC

Hello @espiewak 

 

If you do not want to use the JS, you can directly get this information from the delivery schema, which will have total counts as well as failed and successful counts.

 

More information is available here: Indicator calculation | Adobe Campaign

 

 

Manoj  | https://themartech.pro

9 replies

Manoj_Kumar
Community Advisor
Community Advisor
Mar 21, 2023 11:51 PM UTC

Hello @espiewak 

 

You can add a javascript right after your delivery activity and use this code to get the success counts.

 

var delivery=nms.delivery.load(vars.deliveryId); var successfulCounts=delivery.indicators.success;
Translate
Manoj  | https://themartech.pro
espiewakAuthor
Mar 22, 2023 3:01 PM UTC

Thanks @_manoj_kumar_ 

 

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;
Translate
Manoj_Kumar
Community Advisor
Community Advisor
Mar 23, 2023 12:18 AM UTC

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.

Translate
Manoj  | https://themartech.pro
Sukrity_Wadhwa
Level 4
Apr 19, 2023 8:28 AM UTC

Hi @espiewak,

Were you able to resolve this query or do you still need more help here? Do let us know.

Thanks!

Translate
Sukrity Wadhwa
espiewakAuthor
May 22, 2023 7:51 PM UTC

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, 
e

Translate
Sukrity_Wadhwa
Level 4
May 30, 2023 3:36 AM UTC

Hi @espiewak,

I have escalated this among our SMEs to get you more help.

Thanks!

Translate
Sukrity Wadhwa