SharePoint get folder action

Use the Get folder action to retrieve details of a specific folder or all folders in the specified path in your SharePoint site.

Prerequisites

Note: The examples and graphics provided on this page are for representation purposes only and may not accurately reflect your specific instance. We do not assume responsibility for their maintenance or accuracy.

Ensure that you are authenticated before initiating any SharePoint action. For more details, see SharePoint authenticate action.

Procedure

  1. From the Actions pane, select SharePoint > Folder and file > Get folder and place it in the canvas.

    SharePoint Get Folder Details
  2. In the Site field, select one of the following options:
    • Default site: The site name used during authentication is considered the default site.
    • Other site: If you want to choose a different, specify the different site name.
  3. In the Folder path field, specify the folder path followed by the folder name.
    Note: You can view the folder path in your SharePoint site. To view the root folder name, hover over one of the document library names and view the folder path as shown in the following image:
    SharePoint Folder Path
  4. In the Get all / filter by field, select one of the following options:
    • All folders: Retrieve details of all the folders in the specified path.
    • Folder name: Specify a folder name to retrieve details of this folder.
  5. In the Session field, select one of the following options:
    • Session name: The name you provided for the session during authentication.
    • Variable: Select a variable which contains the session name.
  6. In the List of folders field, select a variable to store the retrieved folder data.
The specified folder details is retrieved and stored in the variable.
Note: The output is retrieved as a list of type Dictionary. To read an individual record (row) in this list, you need to loop through all the dictionary items using the Loop action and read or extract the records (rows) individually. For example, if the list is stored in the variable list_FolderDetails and it contains five records, then each record is passed to the Loop action to be processed one at a time. The loop reads the Name, URL, last modified time and Unique Id of each folder.SharePoint getFolder Actioni