User Activity

Hi All, I want to replace just one keyname with another name. For example: initial input : { “Field1”: “bar”, “Field2”: “bar” } desired output : { “NEWNAME”: “bar”, “Field2”: “bar” } I checked the docs and saw that we can use $.mapKeys to play with t...
Hi All, I am using a file poller snap. In the file filter, what should I give so that I get files with no extensions? So if I use *.txt I get text files. Similarly, to get files without any extension, what should I give? The folder that I am searchi...
Hi All, If I am using a Confluent Kafka Consumer Snap and it crashes in between, Will it commit an offset? For example if there are 500 documents in Kafka and after reading 250 documents Kafka crashes. Will it read from the 251st document when I run ...
Hi Everyone, I have written a simple javascript code in Script snap. Please find the code below: script = { execute : function() { while (input.hasNext()) { var test = [“a”, “b”]; try { outpu...
The output is of the above form. Here root element(Array) is of the form of an array. How do we make it of the form of an object? To get the idea of the json form, the above is the json view of the output. In that, you can see that “d” is an array....
Kudos from