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
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
Contest Alert
Contest runs November 1 - 15. Complete challenges to climb the leaderboard!
Prizes 1 & 2: Salesforce certification exam voucher — won by random drawing, where every point is a ticket. see all prizes
Only the 15 daily challenges shown during this contest count toward points. Earlier dailies don't carry over.