getProfileId()Returns the context user's profile ID.Signature
public static String getProfileId()
Usage:
Id profile_id=userinfo.getProfileId();
system.debug('~~'+profile_id);
String profile_name = [select Name from Profile where id = :profile_id].Name;
System.debug('~~'+profile_name);
Userinfo.getProfileId();
Thanks
Deshraj Kumawat
You can retrive ProfileId using Userinfo.getProfileId(); in apex code.
Here i show you one example Thanx
Pritam Shekhawat
getProfileId()Returns the context user's profile ID.Signature
public static String getProfileId()
Usage:
Thanks
Ankit Maini
(Helios Tech Services)
Don't forget to mark your thread as 'SOLVED' with the answer that best helps you.