nathanw
02/28/2019, 7:26 PMarrayOfIds.forEach(function (id, position, array) {
        var filter = searchModule.createFilter({
            name: "internalid",
            operator: "is",
            values: id,
        });
        filterArray.push(filter);
        if (position !== array.length - 1) {
            filterArray.push("OR");
        }
    });{"type":"error.SuiteScriptError","name":"WRONG_PARAMETER_TYPE","message":"Wrong parameter type: filters[1] is expected as Filter. ","stack":["createError(N/error)","afterSubmit(/SuiteScript.js:69)","createError(N/error)"],"cause":{"name":"WRONG_PARAMETER_TYPE","message":"Wrong parameter type: filters[1] is expected as Filter. "},"id":"","notifyOff":false,"userFacing":true}