Skip to content

How to make a link that will open Sharepoint Workspace or SkyDrive Pro

July 25, 2013

In my previous post I have been discussing a web part that should create a new library.

The next thing we were asked was to create a link that will open Sharepoint WorkSpace or SkydrivePro

Just like this



It turned out that you need provide a very weird encoded link

Here is a link we have produced in our webpart




Grvopen stands for Groove (that was later renamed to Sharepoint WorkSpace and later to SkyDrive Pro)

The piece of code that does encoding is taken from Tatham Oddie

And is posted to his github


Here is a full code


// based on
static string BuildGrooveUri(SPDocumentLibrary lib)
var libUrl  = SPUtility.ConcatUrls(lib.ParentWeb.Url, lib.RootFolder.Url);
const string grooveOpenUriTemplate = "grvopen://{0}/{1}/{2}?OPENLIST";
var uri = string.Format(
return uri;
static string Encode(string plain)
return plain
        .Select(c =>
char.IsLetterOrDigit(c) ? c.ToString() : "_" + ((int)c).ToString())
"", (s, c) => s + c);


  1. @RikardStrand permalink

    Is it possible to convert this to powershell code ?

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: