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
DrawloopSupportDrawloopSupport 

GETRECORDIDS for child object of Standard Controller Opportunity

Setup:

Visualforce page with Opportunity as standard controller

Detail Page Button on Opportunity using Visualforce page

List Button on Opportunity related list to grab specific records of children of opportunity

Question:

Is there any way to use some form of recordSetVar or getRecordIds to get record Ids of an object that is not the object specified in the standard controller? It would be far simpler to do this instead of creating two nearly identical visualforce pages.

Thanks!