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
Felix Jong Seok ChaeFelix Jong Seok Chae 

create a link to a case record in apex developer console

So far I created a custom text field that contains a case number of some case record on each line.
What I would like to do is to add a direct link next to each record's case number in that field.
Can somone help me out on this?
Thank you.
Shashikant SharmaShashikant Sharma
Hi Felix,

Steps to achieve it:

1. Create a Formula field with
2. Choose output type as Text
3. In formula of the field Use below:
HYPERLINK('/' + Id, CaseNumber, '_blank')

4. Add this field to page layout or list view to test it.

It would look like below Case Number With Link field in the below image:


User-added image


Thanks
Shashikant