Skip to main content
Learner SFDC ha fatto una domanda in #Trailhead Challenges
why it is showing as

 

public with sharing class ContactController {

 

    @AuraEnabled(cacheable=true)

 

    public static List<Contact> getContacts() {

 

       List<Contact> conlist =  [

 

            SELECT FirstName, LastName, Email

 

            FROM Contact

 

            WITH SECURITY_ENFORCED

 

        

 

        ];

 

        return conlist;

 

    }

 

}

 

 
3 risposte
  1. 12 lug 2020, 17:09
    Yes sir, it is the complete code its not inner class for any other class. i have tried to execute entire class in anonymus block but it is showing the same error.
0/9000