I want to create a link to a document library that is automatically created by a flow.
The flow creates a file in a SharePoint document library with the following string "[Field1]-[Field2"]-'[Field3]".
The fields are column names in my SharePoint list, and the "-" are text joiners, which creates an unique file reference (reference as @currentField in Formula field).
I am trying to use the following JSON to create a row link to the document, as per the file reference:
{ "$schema": "https://developer.microsoft.com/json-schemas/sp/v2/column-formatting.schema.json", "elmType": "a", "txtContent": "@currentField", "attributes": { "target": "_blank", "href": "='https://xxxxx.sharepoint.com/sites/xxxxx/xxxx/' + '-' +[$Field1] + '-' +[$Field2] + '-' +[$Field2]" } } The main issue is I am trying to figure out how to use text joiners to replace the filepath to build a link to that document.
Updated JSON:
{ "$schema": "https://developer.microsoft.com/json-schemas/sp/v2/column-formatting.schema.json", "elmType": "a", "txtContent": "@currentField", "attributes": { "target": "_blank", "href": "='https://xxxx.sharepoint.com/sites/SPSite/Shared%20Documents/File%20Container/' + [$OTContainer] + '-' + [$MatterCategory] + '-' + [$Title]'" } Internal column name:
- File Reference > OTContainer
- Matter Category > MatterCategory
- Matter Name > Title


-? What will be the file extension?