The old fashioned way to get the name of the current user is to select the record from UserInfo:
UserInfo userInfo;
select firstOnly name from userInfo
where userInfo.id == curUserId();
Instead...(read more)
↧