Forum Discussion

Ravi's avatar
Ravi
New Contributor
6 years ago

snap.out.totalCount variable

Hi,
I’m trying to use two counters snap.in.totalCount, snap.out.totalCount to compare the total record count before the snap parsed and after parsed like to catch if the count is differ.The above variable gives running counter document like 1,2,3… but i need the variable value “20” records if it has 20 records to use in router for writing the different files.
Like
if $in == $out
output0
else
output1.
can you suggest how can i attain this.

3 Replies

  • SpiroTaleski's avatar
    SpiroTaleski
    Valued Contributor

    @Pretty

    With the SnapLogic List Snap, you can list all tasks from the given project.

    Then, using a downstream SnapLogic Read Snap, you can read each task separately(by providing the path of each Task):

    That will returns you details about each task.

    Regards,
    Spiro Taleski