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.
ParthaSarathy
ParthaSarathyAccepted solution
Community Advisor
Nov 26, 2024 2:42 PM UTC

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

3 replies

ParthaSarathy
Community Advisor
ParthaSarathyCommunity AdvisorAccepted solution
Community Advisor
Nov 26, 2024 2:42 PM UTC

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 %>

 

Translate
~  ParthaSarathy S
Level 2
Nov 26, 2024 2:58 PM UTC

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?

Translate
ParthaSarathy
Community Advisor
Community Advisor
Nov 26, 2024 3:33 PM UTC

@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)

Translate
~  ParthaSarathy S