I have a visualforce page on a custom object. On save it is redirected to the notes and attachments page. We are now moving to lightning and notes and attachments feature is available. How do I redirect my page to Files in lightning ?

  • The feature is not available* Nov 11 '16 at 20:49

You can use the navigateToSObject method in your lightning component's controller.

Example from the handleClick js method:


handleClick : function (component, event, helper) {
    var navEvt = $A.get("e.force:navigateToSObject");
      "recordId": "069580000000IIJAA2",
      "slideDevName": "detail"


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.