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
DocMagicDocMagic 

GETRECORDIDS does not select selected rows (checked checkboxes)

I am attempting to create a custom button that passes in an array of solutions to a web webservice.  The code that I am using is:

{!REQUIRESCRIPT ("/soap/ajax/28.0/connection.js")}

var records = {!GETRECORDIDS( $ObjectType.Solution )};

if (records[0] == null) {
  alert("Please select at least one row.");
} else {
  alert("You have made a selection");
}

Unfortunately, with this code, when I click on the custom related list button (via the solution list in a case), I am always prompted that no rows are selected (even when checkboxes are checked). I have tested the three major browsers, and via multiple users, to no avail. Is there something that I am missing?

Any help is much appreciated! Thank you!!

VikashVikash (Salesforce Developers) 
Hi,

Please inlude the following lines in your code

{!REQUIRESCRIPT("/soap/ajax/13.0/connection.js")}
{!REQUIRESCRIPT("/support/console/25.0/integration.js")}
and try to save it. Hopefully it will work.

Thanks
Vikash_SFDC