Forum Discussion

powerplatformlp2's avatar
powerplatformlp2
Copper Contributor
Mar 12, 2024

Creating a Doc Library Column in SharePoint Online to display the URL of a document

Hello!

 

I have a created a column in my SharePoint Online Document library called Document URL. My Name column currently displays the Name of the uploaded document, and when clicked, it will display the document in another browser. I would like to create a column that will simply display the URL/Hyperlink of the Name column.

 

I have created a column in the attempt to display the URL using JSON:

{
"elmType": "a",
"txtContent": "='https://---------.sharepoint.com/'+[$FileRef]+'?web=1'",
"attributes": {
"target": "_Blank",
"href": "=[$FileRef]+'?web=1'"
}
}
 
But when I export the SharePoint Doc Library to excel, this column is Blank in Excel

 

Resources