You need to sign in to do that
Don't have an account?
davidjbb
SQLof the Current User
Hello Community,
I want to retrieve the records of the custom/standard object of the current user.
In addition, what if for example I want to grab the records of the current user and their profiled organization. I.E Bob's profile has set Organization to "Rakio". I want to grab records that belong to Bob who is the current user logged in, and "Rakio"
Thank you,
David
account ac = [Select Id, Name from Account Where CreatedById = : aid limit 1];
System.debug(' ---- ' + ac );
All Answers
account ac = [Select Id, Name from Account Where CreatedById = : aid limit 1];
System.debug(' ---- ' + ac );
Closer to this: