Hello Alexander,
I seem to have discovered a possible bug with the spjs.utility.queryItems function. The query does not seem to work if the queried text contains and ‘&’ character. For example the following query would not return results:
var qRes = spjs.utility.queryItems({
“listName”: “List_Name”,
“query”: “<Where><Eq><FieldRef Name=’Title’ /><Value Type=’Text’>foo&bar</Value></Eq></Where>”,
“viewFields”: [“foo”, “bar”]
});