Skip to main content

Posts

Showing posts from August, 2015

Microsoft.SharePoint.ApplicationRuntime.SafeControlsList.GetSafeControlsListFromPath

  I had this error appearing in event viewer when I tried to run a tool which is doing updates on SharePoint pages. But this was working very fine in my Dev environment and it is not working on my SharePoint production servers. Surprised isn’t It … I tried to figure out the error nothing was successful. But ones I tried to run the same tool of web front end servers it worked . My server farm contains 2 application servers and 2 web front end servers. And I figured it out this error is not appearing and working fine in WFEs not App servers.

SharePoint 2013 List Operations in REST– Retrieve List Fields Basics

How to make a REST call in SharePoint App and SharePoint Provider Hosted App – Part 1 SharePoint 2013 List Operations in REST– Retrieve List  Fields Basics – Part 2 You can use the function specified in the first post to call the REST URLs. You can use the appropriate function depending on the App type you are developing. Get selected fields in SharePoint List using SELECT REST operation. Getting single value fields /* List Name : listname Columns: Title => Text , ID => Number */   var url = "/_api/web/lists/getbytitle('listname')/items?$select=Title,ID" ;   function s(data){   // get the data and convert to JSON Objects var d = JSON.parse(data.body).d.results[0]; alert(d.ID); alert(d.Title); }   function f(data){ alert(data); }   getREST(url,s,f); Getting Single value Lookup fields /* List Name : listname Columns: ID => Number , CountryLookup => List LooukUp */   var url = "/_api/web/lists/getbytitle(