Sharepoint Insight by Namwar Rizvi

Sharepoint Tips, Tricks and inside knowledge from real world experience by Namwar Rizvi

List of SharePoint URL tokens

Posted by namwar on December 1, 2008


Following is a list of tokens available in Sharepoint to use in your URLs. Be aware that Sharepoint only replaces the value of a token once for a given string, so if you have used the same token twice, second occurance will not be replaced by the token value. I will post a solution to do it in my next article:

~site – Web site (SPWeb) relative link.

~sitecollection – site collection (SPSite) relative link.

In addition, you can use the following tokens within a URL:

{ItemId} – Integer ID that represents the item within a list.

{ItemUrl} – URL of the item being acted upon. Only work for documents in libraries. [Not functional in Beta 2]

{ListId} – GUID that represents the list.

{SiteUrl} – URL of the Web site (SPWeb).

{RecurrenceId} – Recurrence index. This token is not supported for use in the context menus of list items.

Advertisements

4 Responses to “List of SharePoint URL tokens”

  1. TheUssef said

    Good writing and useful infos.
    thank you.

  2. Tim Farrell said

    Can you tell me just what the RecurrenceID is used for? I can’t find any information on teh web concerning this.

    Thank you.
    Tim

  3. namwar said

    Hi Tim,
    RecurrenceID is the identifier (ID) of an instance of a recurrent item.

  4. Peter said

    Hi Namwar,

    I stumbled upon this article hoping that there is a token for a user ID. You see, here’s what I’m trying to accomplish: I created a custom mysite left nav using Microsoft’s XML data source provider referencing a site.webmap. I need to add in my site.webmap a link to a user’s document library (e.g. http://portal.com/personal//…aspx).

    How can I do this?

    Thanks,

    Peter

Leave a Reply

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

WordPress.com Logo

You are commenting using your WordPress.com 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 )

Google+ photo

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

Connecting to %s

 
%d bloggers like this: