Forum Discussion
KmDroid
Jun 06, 2019Copper Contributor
Sharepoint CAML Query does not work in IE when searching by Taxonomy Field
Hello,
I've the code below:
function ReceivePages(FirstFolderProd, FirstFolderWithoutSpaceProd, GetTagFolder){ var restUrl = "https://tenant.sharepoint.com/sites/sites/Negocio/OfertaParticulares/_api/web/lists/GetByTitle('Páginas')/GetItems(query=@v1)?@v1=" + "{\"ViewXml\":\"<View Scope='RecursiveAll'><Query><Where><And><Eq><FieldRef Name='ContentType' /><Value Type='Computed'>Produto</Value></Eq><Eq><FieldRef Name='Intranet_SubCategoria' /><Value Type='TaxonomyFieldTypeMulti'>Contas à Ordem</Value></Eq></And></Where></Query></View>\"}"; jQuery.ajax({
url: restUrl, method: "POST",
headers: { "Accept": "application/json; odata=verbose", "X-RequestDigest": document.getElementById("__REQUESTDIGEST").value, },
success: function (data) {
console.log(data); },
error: function (error) {
console.log(error); } }); }
I already tried with taxonomy field in google and its working but in IE11 does not. Is not giving me error when I make the query caml simply gives me 0 results
Google:
IE11:
Any ideas what is the problem?
Thank you in advance,
Ruben
- antonioleonardoCopper Contributor
Hi KmDroid,
Please, may you check if your IE used by your Unit Test is marked to emulate later version, it's settings is defined like image bellow:
If your emulation is flagged to previous version as IE 8 and lower, as "addEventListener" as "DOMContentLoaded", these are not supported at any versions lower than IE 9.
Att,
Antonio Leonardo