How can we help you today?

How to Connect to a Folder inside a Document Library


Connecting a ShortPoint element to a SharePoint Document Library is a simple task. But what if you want to connect the element to a folder inside the Document Library to show the files contained there? Like this one:

To complete the task, we will be using the REST API connection type. Please follow the steps below.


Step 1. Insert a ShortPoint element

In the edit mode of the page,  press the ShortPoint Insert button on the top to open the Page Builder:

For this example, we will be using a Simple List - but as always, feel free to choose any element that you want.

Choose the Simple List element from the Page Builder grid:

The settings of the element will open.

Step 2. Build your REST API link

Here is the URL we will use:

https://site url/_api/web/GetFolderByServerRelativeUrl('Document Library Name/Target Folder Name')/Files

here, you need to substitute the items highlighted with red, with your actual website url, document library name and folder name. 

For example, here is how my URL looks like:'Document Library with Folders/Target Folder')/Files


  • is the URL of my site;
  • Document Library with Folders is the name of my Document Library;
  • and Target Folder is the name of the folder inside the Document Library to which I want to connect.

Step 3. Connect

Switch to the Connect tab of the element settings and select REST API connection option:

Paste the URL you have created in Step 2 into the REST API URL field and press the green Connect button:

Step 4. Map the Items.

Switch to Items tab.

Here, by using the chain icon button, select the columns of the list that you would like to display. For more information please check our article: ShortPoint Connect: Basic Tutorial.

Here is an example of Items Mapping:


Here is what the result will look like:

Happy connecting!

Here are some related articles:

How to show both Files and Folders of the Document Library in your ShortPoint element

Map Results function for your Custom REST APIs

Did you find it helpful? Yes No

Send feedback
Sorry we couldn't be helpful. Help us improve this article with your feedback.

World's best intranet sites are designed using ShortPoint

Get started today! Learn more
See all 27 topics

Start a trial

Ignite your vision. Install ShortPoint directly on your site, or play in sandbox mode. No credit card required.

Get started today

World’s best intranet sites are designed using ShortPoint

Thousands of companies using ShortPoint everyday to design, brand and build award winning intranet sites.

Get started Learn more