Sharepoint CAML Query does not work in IE when searching by Taxonomy Field

Copper Contributor

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:

enter image description here 

IE11:

enter image description here

Any ideas what is the problem?

Thank you in advance,

Ruben

 

1 Reply

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:IE_Emulation.png

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 Leonardoexam-483-programming-in-c.png