Quick Tip: Custom Action Tokens in SharePoint 2010 Designer

June 21, 2011

SharePoint 2010 Designer allows you to create custom actions for the SharePoint ribbon or the item context menu.

Custom Actions in SharePoint Designer

Custom Actions in SharePoint Designer

These custom actions can be used to start a workflow, navigate to a form, and navigate to a custom URL.

Action Types

Action Types

For the last option you can make use of "Tokens". These tokens enable you to create a variable URL's.


The tokens that could be used are the following:

Token Replaced With
~site SPContext.Current.Web.ServerRelativeUrl
~sitecollection SPContext.Current.Site.ServerRelativeUrl
{ItemId} item.ID.ToString()
{ItemUrl} item.Url
{SiteUrl} web.Url
{ListId} list.ID.ToString(“B”)
{RecurrenceId} item.RecurrenceID


More information about the RecurrenceId can be found here.