Using Javascript CSOM and want to return items created by logged in user, but the code below returns all items. Could someone advise?
var camlQuery = new SP.CamlQuery();
var specifier = "<Eq><FieldRef Name='Author'/><Value Type='Integer'><UserID/></Value></Eq>";
camlQuery.set_viewXml = "<View><Query><Where>" + specifier + "</Where></Query></View>";
this.collListItem3 = oList.getItems(camlQuery);
UPDATE
var oList = clientContext33.get_web().get_lists().getByTitle("MyAppList");
var camlQuery = new SP.CamlQuery();
camlQuery.set_viewXml = '<Where><Eq><FieldRef Name="Author" LookupId="TRUE" /><Value Type="Integer"><UserID/></Value></Eq></Where>';
this.collListItem3 = oList.getItems(camlQuery);
clientContext33.load(collListItem3,'Include(Title,ID,App_x003a_Link,App)');
clientContext33.executeQueryAsync(Function.createDelegate(this, this.onQueryAppSucceeded), Function.createDelegate(this, this.onQueryAppFailed));
}
but still shows all items