Newer Version Available
force:navigateToSObject
To display the record view, set the record ID on the recordId attribute and fire the event. The record view contains slides that displays the Chatter feed, the record details, and related information. This example displays the related information slide of a record view for the specified record ID.
1createRecord : function (component, event, helper) {
2 var navEvt = $A.get("e.force:navigateToSObject");
3 navEvt.setParams({
4 "recordId": "00QB0000000ybNX",
5 "slideDevName": "related"
6 });
7 navEvt.fire();
8}| Attribute Name | Type | Description |
|---|---|---|
| recordId | String | Required. The record ID. |
| slideDevName | String | Specifies the slide within the record view to display initially.
Valid options are:
|