You need to sign in to do that
Don't have an account?
sunfishette
SOQL select statement
In my apex class, I am selecting a list of records to be returned to a visualforce page.
The question I have is: how do I limit the records (WHERE clause) to only be returned IF they are assigned to the logged in user?
I.E. "Jack" logs into partner portal, how do I return only his records?
Thanks!
You probably mean to add something like the following:
Each user has a globally unique 15 character identifier, and UserInfo.getUserId() returns this unique identifier.
All Answers
You probably mean to add something like the following:
Each user has a globally unique 15 character identifier, and UserInfo.getUserId() returns this unique identifier.
Yes, exactly. That worked perfectly. Bloody brilliant.
Thank you.