Skip to main content
Hi, in an execute anonymous window I've got this single line:

 

List<Contact> conlist = [select Id, from contact where email='janedoe@gmail.com'];

 

I'm getting this error: Unexpected token '<'.

 

Does anyone know the reason it's not recognising the < in the list declaration? What am I missing?
2 Antworten
  1. 17. Apr. 2018, 19:10
    try this

     

     

    List<Contact> conlist = [select Id from contact where email='janedoe@gmail.com'];

     

     
0/9000