You need to sign in to do that
Don't have an account?
Bhavesh Rekvar
How to get Salesforce user using apex code
Hello,
I'm trying to how we can get the Salesforce user using apex code but did not getting any solution so please reach out.
function readOnly(count){ }
You need to sign in to do that
Don't have an account?
Hello,
I'm trying to how we can get the Salesforce user using apex code but did not getting any solution so please reach out.
Greetings!
You can either query the users by using the below SOQL query:
If you would like to get the current logged in user then you can use the below method.
UserInfo.getUserId() which returns the user id of the current user.
Please mark it as best answer if helps you to fix the issue.
Thank you!
Regards,
Shirisha Pathuri
Hi Shirisha,
I'm totally new to salesforce development so could you provide the whole code to get salesforce users using apex code.
Please let me know where will see the output of the code and how can I use the value of the output in another function...