This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * Tests covering all FLS, OLS, and Sharing Mode combinations from the SOQL security matrix: | |
| * | |
| * SOQL Keyword | Class Sharing | OLS+FLS | Sharing Mode | |
| * -----------------------|-------------------|---------|------------- | |
| * WITH USER_MODE | with sharing | ✅ | ✅ | |
| * WITH USER_MODE | inherited sharing | ✅ | ✅ | |
| * WITH USER_MODE | without sharing | ✅ | ✅ | |
| * WITH SYSTEM_MODE | with sharing | ❌ | ✅ | |
| * WITH SYSTEM_MODE | inherited sharing | ❌ | 🔄 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { LightningElement } from 'lwc'; | |
| export default class DynamicFunctionInvocation extends LightningElement { | |
| handleDynamicInvocation(recordId) { | |
| const prefixToHandler = { | |
| '001': this.handleAccounts, | |
| '003': this.handleContacts, | |
| '006': this.handleOpportunities, | |
| // ... | |
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // JAVA SCRIPT | |
| // Problem | |
| function build(productA, productB, productC) { | |
| let result = ''; | |
| if (productA) { | |
| result += productA; | |
| if (productB) { |