To display the record view, set the record ID on the recordId attribute and fire the event.
createRecord : function (component, event, helper) { var navEvt = $A.get("e.force:navigateToSObject"); navEvt.setParams({ "recordId": "00QB0000000ybNX", "slideDevName": "related" }); navEvt.fire(); }
Attribute Name | Type | Description | Required? |
---|---|---|---|
isredirect | Boolean | Indicates that the new URL should replace the current one in the navigation history. The default is false. | |
recordId | String | The record ID. | Yes |
slideDevName | String | Specifies the slide within the record view to display initially.
Valid options are:
|