I have made a custom button that launches an apex class from the following javascript code:
{!REQUIRESCRIPT("/soap/ajax/10.0/connection.js")}
{!REQUIRESCRIPT("/soap/ajax/10.0/apex.js")}
var contextUser = sforce.apex.execute("QRSBridge", "generateQRS", {});
window.alert('A QRS has been generated.');
This is a custom button on a record, not in a visual force page, that is in an object with multiple other records, possibly with the same name.
I am interested in only querying this record (one that had the button pressed) from my apex class that is executed. Is there any way for me to find the record ID or to limit the query to only this record, the one that had the button pressed? I'm assuming I could pass a variable through javascript?
Any help is appreciated.