This question runs in a pre-configured Salesforce environment - no personal connection required.
Every high-value Opportunity needs to be flagged for review. Query all Opportunities whose Amount is at least 100000, set the Description field to the exact text High Priority on each one, update them in a single DML statement, and return the number of Opportunities updated. Avoid issuing a DML statement when there are no matching records.
Examples:
Input: (no parameters, queries all Opportunities)
Output: 34
Explanation: The value shown is illustrative. The method returns the count of Opportunities with an Amount of at least 100000 that were updated
Apex Code Editor
Welcome to Lightning Challenge!
How It Works
- • Write your solution in the code editor
- • This challenge runs without connecting your own org
- • Submit to check if your solution passes
- • Use hints if you get stuck
Note
You can test your code by connecting to Salesforce, but to save your progress and earn points, you'll need to create an account. Your solutions and achievements will be tracked automatically once you're logged in.