+ Start a Discussion
SFDC_DevloperSFDC_Devloper 

Need Help Formula Fields

Hi All,

   How to get current record id using formula fields (Hyperlink) ?

Thanks
goabhigogoabhigo
I am not too sure if I have understood what you are looking for. If you are asking how to get current record as hyperlink through formula field then:
  • Create a formula field of Text data type
  • Give a suitable name for the link
  • Use HYPERLINK function
    • For eg: HYPERLINK('/' &  Id , 'Give a name to your link')
'/' is root directory - To make it simple it is equivalent to https://ap1.salesforce.com/. Now you are appending (using &) the Id of the record. So essentially you are creating a link with your record.

Happy to explain further if this is not clear.

--
Abhilash.
James LoghryJames Loghry
Have you clicked the "Quick Tips / Operators and Funtions" link shown below on the top right of the screen shot?  It's worthwhile reading and contains useful information for HYPERLINK and other formula functions.  The Hyperlink section even includes a couple of examples with Ids.


User-added image
Bhawani SharmaBhawani Sharma
HYPERLINK(Account.Id, Name)
Raushan AnandRaushan Anand
There is  no need to navigate to root directory Just create a Formula Text Field with  formula: 
HYPERLINK(Id,"Click  here for more info").

Note: Second argument is just a name of your link. So  keep it as per your wish.