Forum Discussion

Henchway's avatar
Henchway
Contributor
5 years ago

Count documents / get value of last document

Hi all,

i’m trying to save a csv file with a file writer and include the number of documents / rows within the name.

I’ve tried giving the csv formatter a binary header (snap.in.totalCount), so i can access the value in the file writer, however it looks like the writer just takes the first value (1).

Is there any simple way of doing this?

Best regards
Thomas

2 Replies

  • philliperamos's avatar
    philliperamos
    Contributor

    Thanks Anub, this will work for 4 fields, but what if I have 200+ and if I want to dynamically set the column headings.
    I’ve attached the same sample pipeline, that generates the table as shown before.
    JsonToMapperToTable_2019_09_16.slp (13.1 KB)