Home > Uncategorized > Tokens that can be used inside a URL

Tokens that can be used inside a URL

 

Token

Resolves to

StartPage

Custom Action

App Part

Remarks

{AppContextToken}

The OAuth context token for the app.

No

No

No

 

{AppWebUrl}

The URL of the app web in an app for SharePoint.

Yes

Yes

Yes

This token should be used only outside an app web. Within the app web itself, use {Site} for the URL of the app web.

{ClientTag}

The client cache control number (client tag) for the current website.

Yes

Yes

Yes

 

{HostLogoUrl}

The logo for the host web of an app for SharePoint.

Yes

Yes

Yes

 

{HostTitle}

The title of the host web of an app for SharePoint.

Yes

Yes

Yes

 

{HostUrl}

The URL of the host web of an app for SharePoint.

Yes

Yes

Yes

 

{ItemId}

The ID of an item in a list or library (an integer).

No

Yes

No

 

{ItemUrl}

The URL of the item being acted upon.

No

Yes

No

 

{Language}

The current language/culture of the host web of an app for SharePoint.

Yes

Yes

Yes

 

{ListId}

The ID of the current list (a GUID).

No

Yes

No

 

{ProductNumber}

The full build version number of the SharePoint farm.

Yes

Yes

Yes

An example value is “15.0.4433.1011”.

{RecurrenceId}

The recurrence index of a recurring event.

No

Yes

No

This token is not supported for use in the context menus of list items.

{RemoteAppUrl}

The URL of a remote web application in an app for SharePoint.

Yes

Yes

Yes

 

{Site}

The URL of the current website.

No

Yes

Yes

 

{SiteCollection}

The URL of the parent site of the current website.

No

Yes

Yes

 

{SiteUrl}

The URL of the current website.

No

Yes

No

 

{Source}

The HTTP Request URL.

No

Yes

No

 

{StandardTokens}

See Remarks.

Yes

Yes

Yes

This combines five other tokens. It initially resolves to SPHostUrl={HostUrl}&SPAppWebUrl={AppWebUrl}&SPLanguage={Language}&SPClientTag={ClientTag}&SPProductNumber={ProductNumber}. Then each of these tokens resolves. If there is no app web, the portion &SPAppWebUrl={AppWebUrl} is not present.

Advertisements
Categories: Uncategorized
  1. No comments yet.
  1. No trackbacks yet.

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 )

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: