I can ́t find the reason why i get undefined fields. Any help?
I think the issue lies within the parameters you are passing into the where parameter, but I am not sure. I use:
console.log("value = " + value);
var whereObject = {FIELDNAME: value };
console.log("whereObject = " + JSON.stringify(whereObject));
return JSON.stringify(whereObject);
The console log help me initially setup the proper parameters and can later be removed.