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

SP.Web Class

Remarks

You must have Browse Directories permissions to run code that uses the GetFolderByServerRelativeUrl method.

It must not be null.

See Also

Reference

SP.Web Methods

SP.Web Properties

SP Namespace