Skip to main content


         This documentation site is for previous versions. Visit our new documentation site for current releases.      
 

Interacting with folder entities

Updated on March 14, 2022

Make use of the folder entity data pages to interact with your SharePoint folders directly from your Pega application. In addition to creating, renaming, and deleting folders, you can use these data pages to retrieve folder metadata and information about folder items, properties, and fields.

Creating a folder

When referenced, the D_SPOnlineCreateFolder data page posts information to create a new folder.

Data page details

Data pageData typeSharePoint APIHTTP method
D_SPOnlineCreateFolderInt-SPO-Folderhttps://{site url}/_api/web/foldersPOST

Data page parameters

NameDescriptionRequired
SiteNameOverrides the default site in SPOnlineSetings.
AuthProfileOverrides the default authentication profile in the SPOnlineSetings data transform.
FolderPathSpecifies the folder path.

For example, Documents/Test.

NewFolderNameSpecifies a new folder name.

Renaming a folder

When referenced, the D_SPOnlineRenameFolder data page posts information to update the title of an existing folder.

Data page details

Data pageData typeSharePoint APIHTTP method
D_SPOnlineRenameFolderInt-SPO-RenameFolderhttps://{site url}/_api/web/listsPOST

Data page parameters

NameDescriptionRequired
SiteNameOverrides the default site in SPOnlineSetings.
AuthProfileOverrides the default authentication profile in the SPOnlineSetings data transform.
FolderPathSpecifies the folder path.

For example, Documents/Test.

NewFolderNameSpecifies a new folder name.
IfMatchHeaderSpecifies a valid ETag value to use during the operation. The default value is *.

Deleting a folder

When referenced, the D_SPOnlineDeleteFolder data page posts information to delete an folder.

Data page details

Data pageData typeSharePoint APIHTTP method
D_SPOnlineDeleteFolderInt-SPO-DeleteFolderhttps://{site url}/_api/web/GetFolderbyServerRelativeUrl('<folder path>')POST

Data page parameters

NameDescriptionRequired
SiteNameOverrides the default site in SPOnlineSetings.
AuthProfileOverrides the default authentication profile in the SPOnlineSetings data transform.
FolderPathSpecifies the folder path.

For example, Documents/Test.

IfMatchHeaderSpecifies a valid ETag value to use during the operation. The default value is *.

Retrieving folder metadata

When referenced, the D_SPOnlineGetFolderMetadata data page returns metadata for a single folder.

Data page details

Data pageData typeSharePoint APIHTTP method
D_SPOnlineGetFolderMetadataInt-SPO-Folder○ https://{site url}/_api/web/GetFolderByServerRelativeUrl('<folder path>')GET

Data page parameters

NameDescriptionRequired
SiteNameOverrides the default site in SPOnlineSetings.
AuthProfileOverrides the default authentication profile in the SPOnlineSetings data transform.
FolderPathSpecifies the folder path.

For example, Documents/Test.

Retrieving a list of folder items

When referenced, the D_SPOnlineGetFolderItems data page returns a list of items from a single folder.

Data page details

Data pageData typeSharePoint APIHTTP method
D_SPOnlineGetFolderItemsPega-API-Storage-Objecthttps://{site url}/_api/web/GetFolderByServerRelativeUrl(‘<folder path>’)?$expand=Folders,Files GET

Data page parameters

NameDescriptionRequired
SiteNameOverrides the default site in SPOnlineSetings.
AuthProfileOverrides the default authentication profile in the SPOnlineSetings data transform.
FolderPathSpecifies the folder path.

For example, Documents/Test.

FoldersOnlyProvides a choice (checkbox) to retrieve only folders.
SelectFieldsSpecifies the fields to retrieve.
SelectItemsSpecifies the items to retrieve. You can use this filter to return results that match a simple logical expression.

For example, in an ID eq 2 expression, ID is the field name, eq is the equality operator, and 2 is the matching value.

For more information about the supported operators and query options, refer to the SharePoint documentation.

OrderBySpecifies the sorting (by field) and order (ascending or descending) in which the results are displayed.

For example, you can display the results sorted by title in a descending order, by specifying Title Desc for this parameter.

TopNItemsRetrieves the top n (integer value) results.
SkipUntilSkips over items until the specified item is reached, and then returns the rest.

For example, if you sort by title in a descending order and configure the data page to skip titles until K, the call retrieves all titles that start with the letters from the K to A range.

Retrieving folder properties

When referenced, the D_SPOnlineGetFolderProperties data page returns the properties of a single folder.

Data page details

Data pageData typeSharePoint APIHTTP method
D_SPOnlineGetFolderPropertiesInt-SPO-FolderPropertieshttps://{site url}/_api/web/GetFolderByServerRelativeUrl('<folder path>')/propertiesGET

Data page parameters

NameDescriptionRequired
SiteNameOverrides the default site in SPOnlineSetings.
AuthProfileOverrides the default authentication profile in the SPOnlineSetings data transform.
FolderPathSpecifies the folder path.

For example, Documents/Test.

Retrieving folder fields

When referenced, the D_SPOnlineGetFolderFields data page returns the fields of a single folder.

Data page details

Data pageData typeSharePoint APIHTTP method
D_SPOnlineGetFolderFieldsInt-SPO-FolderFieldshttps://{site url}/_api/web/GetFolderByServerRelativeUrl('<folder path>')/ListItemAllFieldsGET

Data page parameters

NameDescriptionRequired
SiteNameOverrides the default site in SPOnlineSetings.
AuthProfileOverrides the default authentication profile in the SPOnlineSetings data transform.
FolderPathSpecifies the folder path.

For example, Documents/Test.

Have a question? Get answers now.

Visit the Support Center to ask questions, engage in discussions, share ideas, and help others.

Did you find this content helpful?

Want to help us improve this content?

We'd prefer it if you saw us at our best.

Pega.com is not optimized for Internet Explorer. For the optimal experience, please use:

Close Deprecation Notice
Contact us