Our Advanced Salesforce Developer Simon Lawrence tells us how to migrate complex visualforce pages to Salesforce Lightning.
Do you have a screen in your business that looks a bit like this?
Itโs not great, and why would it be – it has not been updated for about 9 years. Thatโs because nobody dares touch it. There are two reasons for this.
You might be surprised by just how often we come across one of these pages.
But now you have a problem because itโs this page that is stopping you from migrating to Lightning. You may well have given it a go e.g. you flipped the switch and took a look at what happened. In actual fact, at first glance, it did not appear to be too far wrong.
OK there is a space where the side bar used to be in Classic. The fonts have gone a bit haywire. Itโs nothing that you canโt convince your team to get used to.
The problem occurs when you attempt to update the screen. Thatโs when you get one of these messages.
And nothing works. And with that, things just got complicated.
Lightning is incredibly tolerant in what can be brought forward from Classic. Therefore, if a feature of your org doesnโt come across smoothly, itโs probably for a very good reason; perhaps security model breaches, scalability issues – we commonly see major Cross-Site Request Forgery (CSRF) or Cross-origin resource sharing (CORS) issues on pages like this.
But let me reassure you, it will be OK.
It will be OK because you now have Lightning Components. Salesforce has now given us the tools and the knowledge to rebuild functionality in Lightning Web Components much, much faster than we were ever able to in Visualforce and Apex. Along the way, we now have the opportunity to make sweeping improvements to business processes, scalability and maintainability.
Still wondering how to make the first move? I would suggest you prepare by taking a look at the some of the information available on Lightning App Builder, IDE Plugins and Salesforce DX – Iโve included some useful links.
Good luck. Drop me a comment below if it gets really complicated and Iโll see if I can help.
Our independent tech team has been servicing enterprise clients for over 15 years from our HQ in Bristol, UK. Let’s see how we can work together and get the most out of your Salesforce implementation.