Skip to content

Instantly share code, notes, and snippets.

@tyoshikawa1106
Created March 15, 2015 12:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tyoshikawa1106/5d5f7842b84003c90088 to your computer and use it in GitHub Desktop.
Save tyoshikawa1106/5d5f7842b84003c90088 to your computer and use it in GitHub Desktop.
e.force:navigateToSObject sample code
createRecord : function (component, event, helper) {
var navEvt = $A.get("e.force:navigateToSObject");
navEvt.setParams({
"recordId": "00QB0000000ybNX",
"slideDevName": "related"
});
navEvt.fire();
}
@kristinemaimai
Copy link

"You can set a specific slide in the Salesforce app, but not in Lightning Experience."

Please refer to this site: https://developer.salesforce.com/docs/component-library/bundle/force:navigateToSObject/documentation

I also wanted to use "related" but I just found out this today.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment