• Andy Widdess
  • NEWBIE
  • 0 Points
  • Member since 2012

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 1
    Replies

Hi,

 

    I'm getting "Compile Error: unexpected token: ')' at line 19 column 22"  while using System.debug.

I need to get the email of the logged in user. For that i wrote this code:

ID usrid = UserInfo.getUserId();

List<User> cusr = [Select Email From User where id =: usrid ];

String uEmail = cusr[0].Email;
System.debug(uEmail); ---------------------- (Line 19)

 

Can somebody tell me why this is happening and its solution? Please..

 

Thank you,

Savi3.


  • May 30, 2012
  • Like
  • 0