Monday, March 12, 2018

SharePoint Rest API calls are not working in internet Explorer (IE)


This is a sudden issue I have come across,

Previously REST API calls were working on IE, Chrome and other browsers.

EX:

https://abc.com/News/_api/web/lists/getbytitle('Pages')/items?$expand=file&$filter=ArticleStartDate gt dateTime'2017-03-12T00:00:00Z'  &$top=3

For some reason these REST calls are not working in IE without encording. You can do a simple trick to encode the URL before requesting data.

EX:-


eurl = encodeURI(eurl);

Post a Comment