How to get the counts of records? | Community
Skip to main content
Level 2
July 20, 2020
Solved

How to get the counts of records?

  • July 20, 2020
  • 1 reply
  • 5337 views

Hi, 

I need to count of records , for example, I have 3 transaction in my database activity after split I am getting total number of records show up on arrow (as normally we see) so now I need to get these counts and either put that number in temp schema or any excel file (for reporting purpose) please let me know, thanks for your support. 

 

GUPTAA

Best answer by Manoj_Kumar

Hello @csltguptaa ,

 

You Add  javascript code activity and  enrichment activity after the split outbound transitions.

 

Eg.

 

in your javascript activity, create an instance variable and store counts in it.

Make sure to change the count1 to count2 in second javascript activity.

 

Then in the enrichment activity just call this count1 like this.

 

You final output will look like this after the enrichment.

 

 

Note: Count value will remains same for the rows.

 

Let me know if that helps.

 

 

 

1 reply

Manoj_Kumar
Community Advisor
Manoj_KumarCommunity AdvisorAccepted solution
Community Advisor
July 20, 2020

Hello @csltguptaa ,

 

You Add  javascript code activity and  enrichment activity after the split outbound transitions.

 

Eg.

 

in your javascript activity, create an instance variable and store counts in it.

Make sure to change the count1 to count2 in second javascript activity.

 

Then in the enrichment activity just call this count1 like this.

 

You final output will look like this after the enrichment.

 

 

Note: Count value will remains same for the rows.

 

Let me know if that helps.

 

 

 

Manoj     Find me on LinkedIn
Level 2
July 21, 2020
Hi Manoj, thanks a lot, It worked well. Glad to have a quick solution from you,