Wednesday 14 May 2014

How to change the url of a document library in SharePoint

When you create a document library in SharePoint, normally both name and url will be same. If you put any space in the library name, that makes you trouble in url. In that case if you want to change the url,
  1. Login as site collection admin.
  2. Open the site in SharePoint Designer
  3. Locate "All Files" from left hand navigation pane, which will open all folders in your site on the right.
  4. Right Click on the list that you want to change the URL/Web Address for and choose "Rename"
Renaming the library will not make any change to the attached workflow, the Workflow history as well as version history will update with new url.

However, we have to re-save the List Title/Description/Navigation settings because the left nav link did not get updated. Open the new library url in browser. Go to library settings, click on List name ,description and navigation and do save.

Hope this helps..

How to change FireFox’s default Accept header to JSON

As everyone knows SharePoint 2013 REST APS doesn’t understand the $json, it will render its result in XML, however there are quite a few tools there that can convert XML to JSON. Here I have used the default “Accept” HTTP header of the FireFox browser to see JSON. Steps to change this as follows.
  1.  In the address bar in FireFox, type “about:config”.
  2.  Click the “I promise” button.
  3.  In the search bar type “network.http.accept.default”.
  4.  Double-click the Preference Name.
  5.  Enter the String value as "application/json;odata=verbose"

Now when we use FireFox to view WebApi results it defaults to JSON and not XML