Monthly Archives: October 2012

Sharepoint Administration

Backup and Restore Site collection in Sharepoint 2010

Steps to take backup of site collection 1) Open Central Administration. Go to ‘Backup and Restore’. 2) Under ‘Granular Backup’, click on ‘perform a site collection’. 3) Choose  any site collection from the site collection list. Enter destination for the backup file. and click on ‘Start Backup’. 4) Once backup is finished, check if the backup […]

SharePoint Developement

PrePopulate Sharepoint People Picker field with logged in user in list forms – Sharepoint 2007

There is this very common requirement to prepopulate sharepoint people picker field with logged in  user name in New and Edit forms of  sharepoint list. Below is something one can consider to achieve this – Using Sharepoint designer, add the following javascript code in Newform.aspx or EditForm.aspx to Pre-populate the logged in user as a default in sharepoint people picker […]

SharePoint Developement

Send email to multiple users using Sharepoint Designer 2007

To send email to multiple users, stored in multi-user people picker field, using sharepoint designer 2007, one needs to play a little trick. Please do as follows: 1) Create a variable ,  create a new action of type Build Dynamic string:         Click on “Actions” and choose “Build Dynamic string”. Click on “Dynamic string”, this will open a new multiline textbox. Click on Add […]

SharePoint Developement

The remote server returned an error: (502) Bad Gateway – While connecting to Sharepoint server

Recently, I got tangled with this “The remote server returned an error: (502) Bad gateway” problem when my custom webservice, which is using SP Client object model, failed to access sharepoint list. To troubleshoot this issue, I tried to login to the sharepoint site from the remote server using the same credentials under which my […]

SharePoint Developement

Create and host a WCF service in SharePoint 2010

Recently, I came across a scenario where I had to hit sharepoint using client object model to query data from the entire site collection. Most of you must be aware that Client object model doesn’t provide an API that can query data from all the lists in a site collection. Therefore, I had to create a WCF service in Sharepoint which used […]

Sharepoint Administration

Restore-SPSite : The site collection could not be restored. If this problem persists, Please make sure the content databases are available and have sufficient free space.

A very common error in sharepoint when you try to restore sitecollection using powershell. Error message is very clear and simple. All you need to do is ask your database administrator, ensure that content database has enough space and rerun the Restore command. But is it this straightforward? Actually, No!! You would not have been reading […]