
1 minute read
Platform
Apex Run Code in User-Mode
As a security enhancement for Apex database operations user-mode was introduced in Summer 22 as beta and is now GA. You can specify user mode access for read and write operations. Field-level security (FLS) and object permissions of the running user are respected in user mode and sharing rules are applied. In system mode, the class sharing keywords control the sharing rules.
Advertisement
Database read in user mode: List<Case> cases = [SELECT Id FROM Case WITH USER_MODE];
Database write in user mode: Opportunity opp = new Opportunity(Stage=Proposal'); insert as user opp;

Programmers will like this new feature because it allows more secure programming and testing with user permissions.
LWC Barcode Scanner
The new Lightning Web Component lightning-barcode-scanner allows native barcode scanning with a LWC on a mobile device. That’s great news for developers because it means they no longer have to deal with third-party javascript code. The component can be configured to only scan certain barcode types.