SP.Web.getFolderByServerRelativeUrl(serverRelativeUrl) Method
Applies to: SharePoint Foundation 2010
In this article
Return Value
Applies To
Remarks
Returns the folder object located at the specified server-relative URL.
var value = SP.Web.getFolderByServerRelativeUrl(serverRelativeUrl);
Parameters
- serverRelativeUrl
A string that specifies the server-relative URL for the folder.
Type: string
Return Value
Type: SP.Folder
Applies To
Remarks
You must have Browse Directories permissions to run code that uses the GetFolderByServerRelativeUrl method.
It must not be null.