Open in salesfore setup to use lightning as default

Issue #2251 resolved
Jens Henrik Rauff Hansen created an issue

The posiblility open metadata in salesforce “Open in salesfore setup” works fine if the standard view is salesfroce classic.

For those who use only lightning mode, this is not practical.

Feature requested: A way to set the salesforce default view to lightning when using “Open in salesfore setup”.

Bonus feature if posible: When opening metadata using “Open in salesfore setup”, if two factor authentication is active, this always require two factor authentication. It would be nice if it could awoid two factor, when you are already logged in to the org.

Comments (5)

  1. Scott Wells repo owner

    I totally agree that this would be ideal, but as far as I know, the only generic front door URL for metadata objects takes you to Salesforce Classic. I haven’t found a way to provide a metadata object ID and have it open the Lightning setup page for that object.

    As for 2FA/MFA, IC2 is opening that URL just as it does any other. Against a native connection it adds the active session ID to the URL; against a CLI-managed connection it uses the force:org:open command. Both of those should avoid the need for a login, but if that’s not happening when logging into an org enabled for 2FA/MFA, that would likely be a quirk of the generic URL for metadata objects. Does it behave similarly for you when you use the Show Salesforce Setup and Show Developer Console actions? Just wondering if it’s a consistent behavior or not.

  2. Jens Henrik Rauff Hansen reporter

    I se what you mean, it was also imposible for me to open a metadata id using the generic front door. That would require a specific URL for each metadata type. For our organization, the top 10 most used metadata types would probably solve at least 95% of that problem, so it would not be required to solve this for alle metadatatypes, just sayng ;-).

    Show Salesforce Setup and Show Developer Console has the same behavior and requires 2FA/MFA opon opening the URL. In our organization thow we are not going to use this feature while it will open i classic view.

  3. Scott Wells repo owner

    I actually did find a reasonably consistent URL pattern for Lightning setup and also implemented a number of exceptions for metadata types that don’t follow that pattern. It’s not going to be 100% perfect, but it’s also in addition to the Open in Classic Setup action instead of replacing it, so that’s always available as a fallback. Note that I’ve not done anything to address the MFA concern as that’s not under my control.

    This should be included in the Thursday build this week.

  4. Log in to comment