โ03-09-2018 02:45 AM
How to read column names from source dynamically, to perform some logic on columns.? with out hard-coding each column name in hasOwnProperty(). For example if I have a null values in records, I want those columns to write into separate file.
โ03-09-2018 08:44 AM
I donโt know if there is a best practice for this, but one thing you CAN do is run it through a mapper, set to handle null fields, and as pass through, enter EVERY known field as source, and donโt provide a target. That should give you a result that contains NOTHING, but the fields you didnโt specify. Handle null fields apparently only means that it handles source values that donโt exist, EVEN if the field itself doesnโt exist. HOWEVER, if null data DOES exist, it comes across as null.
โ03-12-2018 01:36 AM
Thanks stephen, will try implementing the same.