Forum Discussion
pmancevski
3 years agoNew Contributor III
Hi @aprabhav,
I haven’t encountered this problem but first that comes into my mind, why don’t you add ID into your input data?
You can easily do this with mapper snap with function “snap.in.totalCount”. Basically this will count how many records passed through the mapper, and simply mapped this value into desired field.
Here is a link from the snaplogic documentation:
https://docs-snaplogic.atlassian.net/wiki/spaces/SD/pages/1439394/Snap+Functions+and+Properties#SnapFunctionsandProperties-in.totalCount
Thanks,
Pero M.