Is it possible to get a count of outgoing transition records in a delivery script? | Community
Skip to main content
March 20, 2023
Solved

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

  • March 20, 2023
  • 2 replies
  • 2291 views

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.
Best answer by Manoj_Kumar

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

 

 

2 replies

Manoj_Kumar
Community Advisor
Community Advisor
March 21, 2023

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;
Manoj     Find me on LinkedIn
espiewakAuthor
March 22, 2023

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;
Manoj_Kumar
Community Advisor
Community Advisor
March 23, 2023

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.

Manoj     Find me on LinkedIn
Sukrity_Wadhwa
Community Manager
Community Manager
April 19, 2023

Hi @espiewak,

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

Thanks!

Sukrity Wadhwa
espiewakAuthor
May 22, 2023

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

Sukrity_Wadhwa
Community Manager
Community Manager
May 30, 2023

Hi @espiewak,

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

Thanks!

Sukrity Wadhwa