You need to sign in to do that
Don't have an account?
modolea
Please note that this code worked well before.
Message Edited by modolea on 08-08-2008 12:10 AM
Methods from UserInfo no longer works in our sandbox
Hi,
Since today, in one of our sandboxes (cs2), we have a problem with triggers that use UserInfo methods.
Unfortunately Basic support does not troubleshoot triggers or development issues.
Unfortunately Basic support does not troubleshoot triggers or development issues.
Code:
// line 26:
customObj__c.User__c = UserInfo.getUserId(); // error also occurs when I use: // String name = UserInfo.getName();
Error: Compile Error: Method does not exist or incorrect signature: UserInfo.getUserId() at line 26 column 46 |
Please note that this code worked well before.
Have you any idea?
Thanks
adrian
Message Edited by modolea on 08-08-2008 12:10 AM
Just check in apex classes, may be some one created the class with name userinfo.
So now the UserInfo.getUserId() will pointing the local userinfo class.
So your class is overridding the userinfo class.
Thanks
Srini