2

Can anyone suggest a way to redirect Salesforce Lightning's 'Switch to Salesforce' link? I can't seem to capture the data around the moment the switch happens.

I tried using a simple trigger (similar to the the one below) to see if it fires when the user record changes, but it doesn't. I also tried using a Flow/Process builder combination. That didn't work either. Can anyone suggest a direction to research?

trigger SwitchLink on User(before update, after update){

    for(User u : trigger.new){
        system.debug(u.UserPreferencesLightningExperiencePreferred);
        system.debug(u.id);
    }
}

enter image description here

3
  • I wish I had an answer. I'm curious to know the use case. – gNerb Oct 24 '17 at 22:54
  • 1
    When a user chooses to switch to classic, i want them to encounter a feedback screen so that I can capture their reason why. – Rock Tober Oct 24 '17 at 23:09
  • That's a neat idea, I hope you figure it out. Ill be watching this post :) – gNerb Oct 25 '17 at 21:24

Your Answer

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

Browse other questions tagged or ask your own question.