We have 2 ways to download salesforce files using formula field or same can be used in vf page, aura component and LWC component.
1st using document. It will download latest file.
-HYPERLINK("/sfc/servlet.shepherd/document/download/0696t00000018zRBBQ","Download","_blank") 2nd using version. It will download specific version of the file. -HYPERLINK("/sfc/servlet.shepherd/version/download/0686t00000018zRBBQ","Download","_blank") Notes-"069" is used for Content Document and "068" is used for Content Version Object. |
Comments
Post a Comment