This question runs in a pre-configured Salesforce environment - no personal connection required.
Insert an Account record with the provided details and return the ID of the created Account. The method should handle name, industry, and employee count fields. Return null if the name parameter is blank.
Examples:
Input: name = "Tech Corp", industry = "Technology", employees = 150
Output: "0018c00002PD12345" (Account ID)
Explanation: Account created successfully with all provided details
Input: name = "Small Business", industry = null, employees = 5
Output: "0018c00002PD12346" (Account ID)
Explanation: Account created with null industry value handled properly
Input: name = "", industry = "Finance", employees = 100
Output: null
Explanation: Returns null when name is blank since Name is required
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 July 1 - 31. Complete challenges to climb the leaderboard!
Only the 31 daily challenges shown during this contest count toward points. Earlier dailies don't carry over.