Adding Column to Infotable
I'm trying to add a column to an infotable I created using the DeriveFields snippet however I am receiving the error Wrapped java.lang.IllegalArgumentException: No enum constant com.thingworx.types.BaseTypes.org.mozilla.javascript.IdFunctionObject@1b2d8c9c Cause: No enum constant com.thingworx.types.BaseTypes.org.mozilla.javascript.IdFunctionObject@1b2d8c9c
I'm also not sure what to put under the expressions area.
My code is as follows.
var paramss = {
t: WasteTable /* INFOTABLE /,</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>columns: "Week" / STRING /,</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>types: Number / STRING */,
expressions: '1'
};
// result: INFOTABLE
var result = Resources["InfoTableFunctions"].DeriveFields(paramss);

