Salesforce Lightning Web Components with URL Parameters
A couple weeks ago I needed to create a Salesforce Lightning Web Component (LWC) that pulls values from URL parameters. While the process is very simple it turns out the vast majority of examples on the web are out of date due to a security update Salesforce made sometime last year – and so I spent a frustrating afternoon throwing ideas at the wall until a colleague stumbled into a comment on a blog post that was an incorrect example by a highly trusted expert noting the needed fix. So, in the hopes of shortening the search for anyone else trying to get this to work, I’m offering an example that works – at least as of this writing. ...