Share via

stssync Protocol

The stssync protocol enables you to add an Events list or a Contacts list that exists on a Microsoft Windows SharePoint Services site to Microsoft Office Outlook 2003 or to a third-party application that supports the protocol.


version Required. The version of the application in the format x.y. For example, for Outlook 2003, the value of this parameter should be 1.0. The values x and y must be composed of numbers only. x must not start with a zero, and y must be either zero or some other sequence of digits that does not start with a zero.

Note  x and y cannot be more than two digits each, or Outlook considers the URL to be malformed. A third-party client application may or may not use this parameter, but when the URL is constructed, the parameter must have a value — otherwise, the URL is considered malformed.

folder-type Required. Can be calendar or contacts, depending on the type of SharePoint list being added to Outlook or to a third-party application. This parameter is case-insensitive.

command-name Required. The command name that Outlook or the third-party application understands. Specify add-folder to add a folder to Outlook. More commands may be added to Outlook later.

sts-url Required. The URL to the SharePoint site being added. Should not end in a / character.

the-guid Required. The GUID that, when paired with the sts-url parameter, uniquely identifies a SharePoint list. Outlook expects this parameter to be in the following format: "{"+ 8 hexadecimal characters + "-" + 4 hexadecimal characters + "-" + 4 hexadecimal characters + "-" + 12 hexadecimal characters + "}". If this parameter is in a different format, Outlook considers the URL malformed and returns an error.

site-friendly-name Required. The display name of the site containing the list that is being added. Outlook uses this parameter to create the folder name.

list-friendly-name Required. The display name of the list that is being added. Outlook uses this parameter to create the folder name.

list-url Required. A string that is added to the sts-url parameter to create the full URL for the list. Should start with a / character.

uid Optional. A number greater than zero, with fewer than eight digits. Uniquely represents a user on the SharePoint site.


  • Special character escaping: If any of the characters "&", "\", "[", "]", or "|" is part of the value of the sts-url, site-friendly-name, list-friendly-name, or list-url parameter, it must be preceded by a "|" character. For example, a list-friendly-name of Dan [Wilson] - Business\Personal Contacts would become Dan |[Wilson|] - Business|\Personal Contacts.

  • The sts-url, site-friendly-name, list-friendly-name, and list-url parameters can contain Unicode characters. However, the Unicode characters must be enclosed in brackets "[ ]" and must be 4-digit hexadecimal character representations of the Unicode characters.

  • To implement a third-party client that can make use of the stssync protocol to add and synchronize Events and Contacts lists that exist on a SharePoint site, you typically need to implement an ActiveX control called StssyncHandler and provide support for the stssync protocol. The third-party client typically needs to be able to decode the URL and synchronize the Contacts or Events list on the SharePoint site. You can use the Microsoft.SharePoint namespace or the Web services exposed by Windows SharePoint Services to perform this task. You also need to register the stssync protocol in the registry with the name of the executable file of your application. In Microsoft Windows operating environments with Microsoft Internet Explorer version 5.0 or later, you can use the sample provided below. Copy the following lines to a .reg file, and replace the "<Path to exe>" with the path to the executable file of the application that wants to synchronize events and contacts with Windows SharePoint Services. Then double-click the .reg file to register the stssync protocol on your computer.

    Windows Registry Editor Version 5.00
    @="URL:Add SharePoint Folder"
    "URL Protocol"=""
    @="<Path to exe> \"%1\""

    For information about the StssyncHandler control that is installed on the client computer during Microsoft Office 2003 setup, see StssyncHandler Control.



This URL is for a list called "Evéñts" on a site called "Share|Point [Site]" with site URL http://spserver1 and list URL http://spserver1/Lists/Evts/AllItems.aspx. Note the use of the vertical bar to escape the "|", "[", and "]" characters, and the hexadecimal representation of the two Unicode characters in the list name.