---
schema_version: "1"
id: c4fd0b5aacd98e9b1d7fa81911ed8fe4ccb48aee3d166d39f72f5c8ce25432b0
title: Navigate To SObject
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/lightning-base-components/lightning-design-system/guides/aura/components/force/navigateToSObject/force-navigate-to-sobject.md
canonical_url: https://developer.salesforce.com/docs/platform/lightning-component-reference/guide/force-navigate-to-sobject.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: 193a933f597f92b2659bb85ce2c81043b8e9c0a2c734aff68ad52d1446759ea0
products:
  - Lightning Component Reference
---
# Navigate To SObject

**`force:navigateToSObject`**

Navigates to a record specified by `recordId`.

**For Use In**

Lightning Experience, Experience Builder Sites, Salesforce Mobile App

::::::tabset{tabs='[ "Develop", "Specifications"]'}

:::::tab

**note:** `force:navigateToSObject` is a pilot or beta service that is subject to the Beta Services Terms at [Agreements - Salesforce.com](https://www.salesforce.com/company/legal/agreements/) or a written Unified Pilot Agreement if executed by Customer, and applicable terms in the [Product Terms Directory](https://ptd.salesforce.com/). Use of this pilot or beta service is at the Customer's sole discretion.

This event enables you to navigate to an sObject record specified by `recordId`.

We recommend using `lightning:navigation` component with the `standard__recordPage` page type instead. For more information, see the [Lightning Aura Components Developer Guide](http://developer.salesforce.com/docs/atlas.en-us.lightning.meta/lightning/components_navigation.htm).

To display the record view, set the record ID on the `recordId` attribute and fire the event. Record IDs corresponding to ContentNote SObjects aren’t supported.

The record view contains slides that display 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.

You can set a specific slide in the Salesforce mobile app, but not in Lightning Experience.

```javascript
createRecord : function (component, event, helper) {
    var navEvt = $A.get("e.force:navigateToSObject");
    navEvt.setParams({
      "recordId": "00QB0000000ybNX",
      "slideDevName": "related"
    });
    navEvt.fire();
}
```

In the Salesforce mobile app, you can specify the slide within the record view to display initially. The following slide names are supported.

- `detail`: The record detail slide. This is the default value.
- `chatter`: The Chatter slide.
- `related`: The related information slide.

This event is handled by the `one.app` container. It’s supported in Lightning Experience, the Salesforce mobile app, and Aura-based Experience Builder sites.


:::::

:::::tab
## Attributes

| Name           | Description                                                                                                                                                                          | Type    | Default | Required                                     |
| -------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------- | ------- | -------------------------------------------- |
| `isredirect`   | When redirecting in place, this attribute prevents the creation of multiple history entries in hybrid environments. In this case, hybrid treats redirects as a single history entry. | boolean | false   |                                              |
| `networkId`    | Inherited. Network that the event is associated with.                                                                                                                                | string  |         |                                              |
| `recordId`     | The record ID.                                                                                                                                                                       | string  |         | ![Yes](https://developer.salesforce.com/media/check.png) |
| `slideDevName` | The developer name of the of the slide to navigate to. By default, options are 'chatter', 'related', 'detail'.                                                                       | string  |         |                                              |

:::::

::::::
