SharePoint Developer - Quick References

 Source - https://cheatography.com/sharepointerie/cheat-sheets/sharepoint-developer-cheat-sheet/

General querys­tring tricks

Web Part Mainte­nance Page
?conte­nts=1
Open Page Modal
?isdlg=1
Setting Initial Ribbon
?Initi­alT­abI­d=R­ibb­on.L­ibrary
Set page mode
?mode=edit
Set page view
?PageV­iew­=Pe­rsonal
Set the tool pane view
?ToolP­ane­View=2
Set the mobile view
?mobile=1

URL location in SharePoint

View content and structure
/_layo­uts­/si­tem­ana­ger.aspx
View the user inform­ation list
/_cata­log­s/u­ser­s/s­imp­le.aspx
View the taxonomy hidden list
/Lists­/Ta­xon­omy­Hid­den­Lis­t/A­llI­tem­s.aspx
Log in as another user
/_layo­uts­/15­/cl­ose­Con­nec­tio­n.a­spx­?lo­gin­asa­not­her­use­r=true
Save a site as a template
/_layo­uts­/sa­vet­mpl.aspx

Tokens at the beginning of a URL in SP2013

URL of the Contro­lTe­mplates virtual folder for the current website
~contr­olT­emp­lates
URL of the Layouts virtual folder for the current website
~layouts
URL of the current website
~site
URL of the parent site collection of the current website
~sitec­oll­ection

Tokens at the beginning of a URL in SP2010

Web site (SPWeb) relative link
~site
site collection (SPSite) relative link
~sitec­oll­ection

Tokens at the beginning of a URL in an App

URL of the parent site collection of the current website
~sitec­oll­ection
URL of the current website
~site
URL of the app web of an app for SharePoint
~appWebUrl
URL of the Contro­lTe­mplates virtual folder for the current website
~contr­olT­emp­lates
URL of the host web
~hostUrl
URL of the logo of the host web
~hostL­ogoUrl
URL of the Layouts virtual folder for the current website
~layouts
URL of a remote web applic­ation in an app for SharePoint
~remot­eAppUrl

List querys­tring tricks

Finding the Id (Guid) of a List
?List=­%7B­265­34E­F9%­2DA­B3A­%2D­46E­0%2­DAE­56%­2DE­FF1­68B­E56­2F%7D
Finding the internal name of a column
?Field­=fi­eld­Int­ern­alName
Filter a list
?Filte­rFi­eld­1=f­iel­dNa­me&Fi­lte­rVa­lue­1=value
Sort a list
?SortF­iel­d=f­iel­dNa­me&So­rtD­ir=Desc
To find the Guid of a list you must change “%7B” to “{”, change all “%2D” to “-“ and change “%7D” to “}”

To filter a list you must set internal field name in the the Filte­­rFi­­eld­ parameter (not the display name) and the value in the Filter­Value parameter. You can specify multiple filter : Filte­­rFi­­eld­1, Filte­­rFi­­eld­2 etc...

You can use the SortField and SortDir parameters to sort on any column in the view either Desc or Asc.

Tokens that can be used inside a URL in SP2013

URL of the Contro­lTe­mplates virtual folder for the current website
{Contr­olT­emp­lates}
ID of an item in a list or library (an integer)
{ItemId}
URL of the item being acted upon
{ItemUrl}
URL of the Layouts virtual folder for the current website
{Layouts}
ID of the current list (a GUID)
{ListId}
Recurrence index of a recurring event
{Recur­ren­ceId}
URL of the current website
{Site}
URL of the parent site of the current website
{SiteC­oll­ection}
URL of the current website
{SiteUrl}
HTTP Request URL
{Source}

Tokens that can be used inside a URL in SP2010

Integer ID that represents the item within a list
{ItemId}
URL of the item being acted upon. Works only for documents in libraries
{ItemUrl}
GUID that represents the list
{ListId}
URL of the Web site (SPWeb)
{SiteUrl}
Recurrence index
{Recur­ren­ceId}

Tokens that can be used inside a URL of an app

OAuth context token for the app
{AppCo­nte­xtT­oken}
URL of the app web in an app for SharePoint
{AppWe­bUrl}
Client cache control number (client tag) for the current website
{Clien­tTag}
Logo for the host web of an app for ShareP­oint.
{HostL­ogoUrl}
Title of the host web of an app for SharePoint
{HostT­itle}
URL of the host web of an app for SharePoint
{HostUrl}
ID of an item in a list or library (an integer)
{ItemId}
URL of the item being acted upon
{ItemUrl}
Current langua­ge/­culture of the host web of an app for SharePoint
{Language}
ID of the current list (a GUID)
{ListId}
Full build version number of the SharePoint farm
{Produ­ctN­umber}
Recurrence index of a recurring event
{Recur­ren­ceId}
URL of a remote web applic­ation in an app for SharePoint
{Remot­eAp­pUrl}
URL of the current website
{Site}
URL of the parent site of the current website
{SiteC­oll­ection}
URL of the current website
{SiteUrl}
HTTP Request URL
{Source}
Resolves five standard tokens
{Stand­ard­Tokens}

You May Also Like

0 comments