You need to sign in to do that
Don't have an account?
Satyendra Singh 15
How do i get profile id by name without SOQL
I am trying to get the profile id but without making any SOQL in trigger
function readOnly(count){ }
You need to sign in to do that
Don't have an account?
If you need Current user's profile id then need check this link.
https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_methods_system_userinfo.htm
If this answer help's you please mark as best answer.
You can simply use getProfileId() method from UserInfo Class.
e.g.
Id profileId=userinfo.getProfileId();