You need to sign in to do that
Don't have an account?
jaw999
Select Count UserRecordAccess work around?
I'd like to get the workaround equivalent to the posted code, but it does not seem possible to run a count on the UserRecordAccess object?
if ([select count() from UserAccessRecord where UserId = :UserInfo.getUserId() and AccountId = :sc.getId()] > 0) { return true; }
Error: Compile Error: Non-void method might not return a value or might have statement after a return statement. at line