how to insert the count of an outbound activity in an e-mail? | Community
Skip to main content
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 ParthaSarathy

Hi @elisabettapi ,

Add an enrichment in the 945 records transition > add data > $(vars/@recCount) and give alias as @count 

In Delivery, print the count value using below syntax,

 

<%= targetData.count %>

 

1 reply

ParthaSarathy
Community Advisor
ParthaSarathyCommunity AdvisorAccepted solution
Community Advisor
November 26, 2024

Hi @elisabettapi ,

Add an enrichment in the 945 records transition > add data > $(vars/@recCount) and give alias as @count 

In Delivery, print the count value using below syntax,

 

<%= targetData.count %>

 

~  ParthaSarathy S~  Click here to join ADOBE CAMPAIGN USER GROUP for Quarterly In-person | Hybrid | Virtual Meetups
Level 2
November 26, 2024

It works! Thanks 

 

Another question: If I have 2 outbound transitions from the split activity, how can I manage the 2 counts in the same delivery?

ParthaSarathy
Community Advisor
Community Advisor
November 26, 2024

@elisabettapi , In both Split transitions, Instead of enrichment use JavaScript activity and store the count in 2 different variables as,
Transition-1: JavaScript > instance.vars.count1 = vars.recCount;
Transition-2: JavaScript > instance.vars.count2 = vars.recCount;
And in delivery, call this instance variable using the steps mentioned in this document (refer 'Calling a Variable in the Content of the Delivery' section)

~  ParthaSarathy S~  Click here to join ADOBE CAMPAIGN USER GROUP for Quarterly In-person | Hybrid | Virtual Meetups