logo
search
SharePoint Document Issues

How to Create Dynamic Links for SharePoint File Path Elements

Anum MushtaqAnum Mushtaq Oct 22, 2026 868 views

Question details

The user needs to display individual file path segments in a SharePoint list and assign a dynamically generated clickable link to each separate element.

How to Create Dynamic Links for SharePoint File Path Elements
Product
Microsoft SharePoint
Device & OS
not provided
Scenario
Configuring SharePoint list column formatting to display interactive, segmented file paths instead of a single text string.
Observed behavior
Standard JSON column formatting can display the path text elements, but it lacks the capability to automatically convert each separated path segment into an individual, dynamically generated hyperlink.
Before you start

Ensure you have Site Owner or List Administrator permissions in your SharePoint environment and possess access to Power Automate to create and manage automated cloud flows.

Solution 1Recommended

Use Power Automate to Populate Separate Hyperlink Columns

Since column formatting JSON alone cannot dynamically generate individual links for every path segment, the recommended workaround is using Power Automate to populate dedicated columns.

To achieve clickable elements for different parts of a path, create individual hyperlink columns for each segment of your path. You can then use Power Automate combined with the SharePoint REST API to populate these fields automatically whenever a file is added or modified.

1
Create hyperlink columns

Navigate to your SharePoint list and create three new Hyperlink columns named SitePathLink, FolderPathLink, and FilePathLink.

2
Set up a Power Automate flow

Open Power Automate and create an automated cloud flow that triggers 'When an item is created or modified' targeting your specific SharePoint list.

3
Add an HTTP request action

Add a 'Send an HTTP request to SharePoint' action to your flow to utilize the SharePoint REST API.

4
Configure the POST request

Set the method to POST and target the list item endpoint, for example: _api/web/lists/getbytitle('YourListName')/items(id).

5
Update the request body

In the request body, supply the dynamically derived URL and description for each segment to update the SitePathLink, FolderPathLink, and FilePathLink columns appropriately.

Microsoft Feedback Portal: Because native JSON formatting is limited in this regard, consider submitting a feature request for multi-link dynamic formatting through the Microsoft Feedback portal.
Free Microsoft Office alternative

Manage Your Office Documents Effortlessly with WPS Office

While complex SharePoint list customizations require detailed workflows in Power Automate, creating and managing the actual documents doesn't have to be complicated. WPS Office provides a lightweight, highly compatible, and free alternative to Microsoft Office for all your document needs.

  1. 1. Download the installer: Visit the official WPS Office website and click the free download button.
  2. 2. Install the software: Run the downloaded installation file and follow the on-screen prompts to set up the software.
  3. 3. Open your files: Launch WPS Office and easily open or edit your existing Microsoft Office documents without format loss.
Fully compatible with Microsoft Office formats like .docx, .xlsx, and .pptx.Lightweight architecture for rapid installation and smooth editing performance.Familiar, intuitive user interface that requires zero learning curve.Built-in PDF editing and format conversion tools.Seamless cloud integration to save and sync files across Windows, Mac, iOS, and Android.
microsoft office alternative - wps office

Frequently Asked Questions

Why can't I use JSON column formatting to make each path segment a clickable link?

SharePoint's JSON column formatting applies transformations to the entire column value. While it can alter text appearance and wrap the whole column in a single link, it lacks the functional capability to iterate through a split string and assign distinct, interactive hyperlink properties to each individual element.

Do I need a premium Power Automate license to use the SharePoint REST API?

No. The 'Send an HTTP request to SharePoint' action is a standard connector included with most base Office 365 licensing plans. It does not require a premium Power Automate license.

Can I hide the original raw file path column after setting up the new hyperlink columns?

Yes. You can edit your default list view settings to uncheck and hide the original file path column, ensuring users only see the neatly formatted SitePathLink, FolderPathLink, and FilePathLink columns.