Sunday, January 22, 2012

Sending HTML Formatted Emails in SharePoint Designer Workflows

Hi All,

Did you ever faced the problem of emails sent using SPD 2010 showing html tags ?

This is the most common error if you are trying to add your own html tags in workflow's send email activity.

The workaround for this problem is:

1. Add Send Email activity in SPD 2010

2. Select the Send Email activity and click on Advanced Properties as shown below

3. Once you click on Advanced Properties, you will get a popup like this:

4. Here, as you see, you can add parameters like To Address, CC Address, BCC Address etc.

5. Select Body and Click on the button to the left of fx and insert your custom Html there and Publish the workflow

6. Now, the html tags will not be rendered in emails received !


Saturday, January 21, 2012

Restore a Site Collection in SharePoint 2010

Hello All,

Here's is the best resource to restore a deleted site collection in SharePoint 2010 using Powershell.


Monday, January 2, 2012

Download a File from FBA enabled SharePoint Site Programatically using WebClient

Hello All,

We recently had a requirement to download an image from a Forms Based SharePoint site programatically but we always got 403 error (Forbidden) when trying to download using WebClient.DownloadData method.

Fortunately, after some googling, we found this great post which helped me in resolving the problem.

On a high level, this approach uses the SharePoint's Authentication.asmx web service to hit the site using the credentials.

Hope this helps. Have a great year ahead....!