function readOnly(count){ }
Don't have an account?
Search for an answer or ask a question of the zone or Customer Support.
You need to sign in to do that
Sign in to start searching questions
Signup for a Developer Edition
Sign in to start a discussion
HOW WE KNOW LOGED IN USER PROFILE NAME IN APEX?
No need to shout :)
You get the id from UserInfo and then the name via a SOQL query. Something like:
Id profileId=UserInfo.getProfileId(); Profile p=[select Name from Profile where id=:profileId];
Thanx bob
As an alternative if used in VF pages then:
$Profile.Name
No need to shout :)
You get the id from UserInfo and then the name via a SOQL query. Something like:
Thanx bob
As an alternative if used in VF pages then: