You need to sign in to do that
Don't have an account?

Lightning Console Redirect
Currently I have a Visualforce page that is used to accept parameters from outside Salesforce. The visualforce page calls javascript and opens a tab in a lightnig console. I am successful opening the lightning console tab when the values are all correct. I am trying to use ApexPages.addmessage to display a message when the ID is not found. The issue is that I continue to get 'Error: resolvePage() - Error determining State from pageReference' An ugly error hits the page that has to be x'ed out of. Then it says page not found. Is there a method I could use to redirect to the 'Home Page of the Console?'
All Answers
I am trying to display a custom error in Lightning when an Apex Trigger fails.
Right now we get the standard Stack Trace from all the Exceptions that are fired but I want a User Friendly message, any help is appreciated..
Reference: https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_methods_system_sobject.htm