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
SFDC_BigDogSFDC_BigDog 

Parent Account — View Hierarchy

As I can see the view hierarchy option beside Account Name field. Can I create something similar of that kind besides my OwnerAccount field. As my OwnerAccount will be having multiple records. If I can establish view hierarchy option it will easy to see the hierarchy. Any insights would be appreciated.

User-added image
ra1ra1

Hi SFDC_Penna,

I am assuming that "OwnerAccount" is custom lookup (Account) field. Here you can create a custom formula field and show "View Hierarchy" link within it. For example:

HYPERLINK('/'+ParentId , Parent.Name, '_self' ) + ' [' +
 HYPERLINK('/acc/account_hierarchy.jsp?id=' +  ParentId , 'View Hierarchy' ) + ']'

Note: Please replace "ParentId" with your custom field api name.

Thanks