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
AbhijitAbhijit 

Custom Button formula to navigate to Record Type

Hello,

 

I need help.

 

I have custom object called Service Access with 2 Record Type Name 1. LOA  2. Trail . This custom object has lookup to opportunity.

 

I have to create 2 custom buttom on related list of service access (which i already created) one will navigate to LOA record type and another to Trail Record Type.

 

How i can navigate to appropriate Record Type, bcaz for time being i used following hardcoded url while creating Trail Custom buttom in which i have hardcodef id i.e

 

" /a0e/e?retURL=%2Fa0e%2Fo&RecordType=006S0000002b4r0". 

 

Can someone assit me how i can get LOA id or Trail id instead of hardcoding.

 

Thanks,

Abhijit