How to Create Dynamic Links for SharePoint File Path Elements
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.

- 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.
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.
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.
Navigate to your SharePoint list and create three new Hyperlink columns named SitePathLink, FolderPathLink, and FilePathLink.
Open Power Automate and create an automated cloud flow that triggers 'When an item is created or modified' targeting your specific SharePoint list.
Add a 'Send an HTTP request to SharePoint' action to your flow to utilize the SharePoint REST API.
Set the method to POST and target the list item endpoint, for example: _api/web/lists/getbytitle('YourListName')/items(id).
In the request body, supply the dynamically derived URL and description for each segment to update the SitePathLink, FolderPathLink, and FilePathLink columns appropriately.
Display Visually Separated Path Elements Using JSON Formatting
If you only need to display the path segments visually separated without needing individual clickable links, you can use basic JSON column formatting.
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. Download the installer: Visit the official WPS Office website and click the free download button.
- 2. Install the software: Run the downloaded installation file and follow the on-screen prompts to set up the software.
- 3. Open your files: Launch WPS Office and easily open or edit your existing Microsoft Office documents without format loss.

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.




