function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Sujata Tiwari 3Sujata Tiwari 3 

How to display link (URL) of the file in lightning.

Hi,

I have a requirement to display the link of the uploaded file in the field.

I have created a formula field (View file) and using this hyperlink
HYPERLINK("#/ContentDocument/0690E000000Qfy1QAC/view?fv0=" &CORE_Tech_File_Link__c, "_self")

where ContentDocumentId - 0690E000000Qfy1QAC, CORE_Tech_File_Link__c is text field

but its throwing an error : No syntax errors in merge fields or functions. (Compiled size: 156 characters)
Also I want to make this hyperlink as dynamic.

Really appreciate your help.!!
SandhyaSandhya (Salesforce Developers) 
Hi,

When it says 'No syntax errors in merge fields or functions' there are no errors in this formula, your formula has compiled successfully.

https://success.salesforce.com/answers?id=9063A000000ZkfdQAC
 
http://patricksteffens.com/create-a-dynamic-hyperlink-formula-in-salesforce/
 
Please mark it as solved if my reply was helpful. It will make it available for other as the proper solution.
                                             
Best Regards
Sandhya