There is a requirement to show a modal pop-up forcing our user to choose a reason from a dropdown when loading a Case that meets specific requirements.
The following line of code redirects to a specific Case's record page
PageReference casePageRef = new ApexPages.StandardController(currentCase).view();
casePageRef.getParameters().put('callType', lookup.CallType__c);
where a Lightning component exists that takes care of the rest of the work. The last piece that we are stuck on is how to retrieve the callType parameter from that Lightning component.
I can see a redirect happening that has my parameters I'm trying to pick, however the final result of the redirects do not have anything.
The following steps happen:
- Go to an initial URL that looks up which Case to load. This is where the PageReference exists.
- The browser is redirected a URL that looks something like: https://{org}.lightning.force.com/lightning/_classic/%2F5001f000000uvzp%callType%3DVIVR%26sfdcIFrameOrigin%3Dhttps%253A%252F%{org}.lightning.force.com%26clc%3D1
- The browser is redirected to a final URL that looks like: https://{org}.lightning.force.com/lightning/r/Case/5001f000000uvzpAAA/view
Now the application is loading the actual record page. My component loads. There are no parameters any more.