How to get the counts of records? | Adobe Higher Education
Skip to main content
Level 2
July 20, 2020
해결됨

How to get the counts of records?

  • July 20, 2020
  • 1 답변
  • 5352 조회

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

최고의 답변: 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 답변

Manoj_Kumar
Community Advisor
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  | https://themartech.pro
CSLTGUPTAA작성자
Level 2
July 21, 2020
Hi Manoj, thanks a lot, It worked well. Glad to have a quick solution from you,