Hi everyone, i am new to salesforce platform i am practicing salesforce trailhead challnges i am getting error in TOPIC: CREATE AND USE CUSTOM CONTROLLERS .ERROR NAME:EXPECTING RIGHT PARENTHESIS FOUND 'NEW'AT LINE3 COLUMN'37' my CODE:
public class NewCaseListController {
public List<Case> getNewCases() {
List<Case> results = [SELECT CaseNumber FROM Case WHERE status='New'];
return results;
}
}
Hope this helps you!
Please mark it as Best Answer if my reply was helpful. It will make it available for other as the proper solution.
If you are trying for the example code given in the module.Then Please refer below full code.
Visualforce page
Controller
And if you are trying the challenge please refer below code.
Hope this helps you!
Please mark it as Best Answer if my reply was helpful. It will make it available for other as the proper solution.
Thanks and Regards
Sandhya