ltng:selectSObject

Sends the recordId of an object when it’s selected in the UI.

To select an object, set the record ID on the recordId attribute. Optionally, specify a channel for this event so that your components can select if they want to listen to particular event messages.

selectedObj: function(component, event) { 
 var selectedObjEvent = $A.get("e.ltng:selectSObject"); 
 selectedObjEvent.setParams({
          "recordId": "0061a000004x8e1", 
          "channel": "AccountsChannel" 
 }); 
 selectedObj.fire(); 
}
Attribute Name Type Description
recordId String Required. The record ID associated with the record to select.
channel String Specify this field if you want particular components to process some event messages while ignoring others.