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
Ian GoodineIan Goodine 

Custom button on related record

Hi all,

I have an object called Inspection Record which has a related record on it called Inspection Data.  I made a custom button that appears on this related record called "Expanded View".  My goal is that when I click the button on Inspection Record, it brings me to the Inspection Data and sets the filter as "Inspection Record Name"=the inspection record I am leaving, for the custom view called Data View. 

Basically just looking to make a quick way to get to a bigger view of the related records, because there are >10 fields within each data record to compare

Any ideas?  Not sure if the filter part is possible, my experience with Apex syntax is very mediocre.