Im having problems verifying my salesforce challenge. It says the challenge cant be approved to not being able to find my Account Controller file. Ive noticed that when i got to enter SFDX:Execute SOQL Query with Currently Selected Text i get errors in the QUERY section.Its also showing this command has errors. public with sharing class AccountController {
public static List<Account> getAllActiveAccounts() {
return [SELECT Id, Name, Active__c FROM Account WHERE Active__c = 'Yes' WITH SECURITY_ENFORCED];
}
}
#Trailhead Challenges
5 件の回答
The apex class is not deployed to org due to error in soql which is why challenge is not accepted. First fix the query error, deploy it and then validate it. Share your code so error can be fixed.